diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class index 5370c906a8..a2c02087fe 100644 --- a/etc/inc/dyndns.class +++ b/etc/inc/dyndns.class @@ -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);