mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Do curl_init above any curl_setopt, and take it out of that if block since it applies to all types.
This commit is contained in:
parent
7da63a641c
commit
5d0fd04e25
@ -275,12 +275,13 @@
|
||||
$realparentif = $this->_dnsRequestIf;
|
||||
}
|
||||
|
||||
$ch = curl_init();
|
||||
|
||||
if ($this->_useIPv6 == false) {
|
||||
curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4 );
|
||||
}
|
||||
|
||||
if ($this->_dnsService != 'ods' and $this->_dnsService != 'route53 ') {
|
||||
$ch = curl_init();
|
||||
curl_setopt($ch, CURLOPT_HEADER, 0);
|
||||
curl_setopt($ch, CURLOPT_USERAGENT, $this->_UserAgent);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user