From cd8f7eee0e034f7998f68d23ddfbe8988d2234b3 Mon Sep 17 00:00:00 2001 From: Florian Asche Date: Wed, 12 Mar 2014 22:31:53 +0100 Subject: [PATCH] Update dyndns.class Only use IPv4_only function if ipv6 is false --- etc/inc/dyndns.class | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class index 430dd885f4..b343387520 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);