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:
Chris Buechler 2015-10-08 22:36:16 -05:00
parent 7da63a641c
commit 5d0fd04e25

View File

@ -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);