From 1f51641d6d9ada5caa4206090076b7f98d533d9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=C3=A7i?= Date: Sun, 20 Jul 2008 19:17:21 +0000 Subject: Use interface name rather than ip address as a better option. --- etc/inc/dyndns.class | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'etc') diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class index 855b36b..efccb58 100644 --- a/etc/inc/dyndns.class +++ b/etc/inc/dyndns.class @@ -853,8 +853,7 @@ $ip_ch = curl_init('http://checkip.dyndns.org'); curl_setopt($ip_ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ip_ch, CURLOPT_SSL_VERIFYPEER, FALSE); - if ($this->_dnsIP <> "" || $this->_dnsIP <> "0.0.0.0") - curl_setopt($ip_ch, CURLOPT_SETINTERFACE, $this->_dnsIP); + curl_setopt($ip_ch, CURLOPT_INTERFACE, $this->_if); $ip_result_page = curl_exec($ip_ch); curl_close($ip_ch); $ip_result_decoded = urldecode($ip_result_page); -- cgit v1.1