summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-07-20 19:17:21 +0000
committerErmal Luçi <eri@pfsense.org>2008-07-20 19:17:21 +0000
commit1f51641d6d9ada5caa4206090076b7f98d533d9d (patch)
tree1dd6b42531a37ba59d05895bb500bedbd533a17f /etc/inc
parent6f895eca44608b3fef93f9fe4769d46d9bc328da (diff)
downloadpfsense-1f51641d6d9ada5caa4206090076b7f98d533d9d.zip
pfsense-1f51641d6d9ada5caa4206090076b7f98d533d9d.tar.gz
Use interface name rather than ip address as a better option.
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/dyndns.class3
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);
OpenPOWER on IntegriCloud