diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-07-20 19:17:21 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-07-20 19:17:21 +0000 |
commit | 1f51641d6d9ada5caa4206090076b7f98d533d9d (patch) | |
tree | 1dd6b42531a37ba59d05895bb500bedbd533a17f /etc | |
parent | 6f895eca44608b3fef93f9fe4769d46d9bc328da (diff) | |
download | pfsense-1f51641d6d9ada5caa4206090076b7f98d533d9d.zip pfsense-1f51641d6d9ada5caa4206090076b7f98d533d9d.tar.gz |
Use interface name rather than ip address as a better option.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/dyndns.class | 3 |
1 files changed, 1 insertions, 2 deletions
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); |