diff options
author | Florian Asche <github@florian-asche.de> | 2014-03-12 22:31:53 +0100 |
---|---|---|
committer | Florian Asche <github@florian-asche.de> | 2014-03-12 22:31:53 +0100 |
commit | cd8f7eee0e034f7998f68d23ddfbe8988d2234b3 (patch) | |
tree | 463f79a66b19ec9fca76a1820fdb19ede0ee7907 /etc/inc | |
parent | d84faccb602832678f10f045c47387164be7b03b (diff) | |
download | pfsense-cd8f7eee0e034f7998f68d23ddfbe8988d2234b3.zip pfsense-cd8f7eee0e034f7998f68d23ddfbe8988d2234b3.tar.gz |
Update dyndns.class
Only use IPv4_only function if ipv6 is false
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/dyndns.class | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class index 430dd88..b343387 100644 --- a/etc/inc/dyndns.class +++ b/etc/inc/dyndns.class @@ -1398,7 +1398,9 @@ curl_setopt($ip_ch, CURLOPT_INTERFACE, $ip_address); curl_setopt($ip_ch, CURLOPT_CONNECTTIMEOUT, '30'); curl_setopt($ip_ch, CURLOPT_TIMEOUT, 120); - curl_setopt($ip_ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); + if ($this->_useIPv6 == false) { + curl_setopt($ip_ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); + }; $ip_result_page = curl_exec($ip_ch); curl_close($ip_ch); $ip_result_decoded = urldecode($ip_result_page); |