diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-12-22 14:12:40 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-12-22 14:12:40 +0000 |
commit | 8f1b45aae320985a1168b6e1fbf18fb434f3d5d4 (patch) | |
tree | 75f2da4e3282a1a12bf1e4f726a37fd1ccd49065 /etc | |
parent | 88f65b7ebd73d640c7a4958eb5feaecdb278dcc7 (diff) | |
download | pfsense-8f1b45aae320985a1168b6e1fbf18fb434f3d5d4.zip pfsense-8f1b45aae320985a1168b6e1fbf18fb434f3d5d4.tar.gz |
Fix variable name type. Fix CURLOPT_INTERFACE opt setting.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/dyndns.class | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class index daa98ab..7b7bbbd 100644 --- a/etc/inc/dyndns.class +++ b/etc/inc/dyndns.class @@ -893,14 +893,14 @@ log_error("DynDns: _checkIP() starting."); - $ip_address = find_interface_ip($this->if); + $ip_address = find_interface_ip($this->_if); if (is_private_ip($ip_address)) { $hosttocheck = "checkip.dyndns.org"; $checkip = gethostbyname($hosttocheck); $ip_ch = curl_init("http://{$checkip}"); curl_setopt($ip_ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ip_ch, CURLOPT_SSL_VERIFYPEER, FALSE); - curl_setopt($ip_ch, CURLOPT_INTERFACE, $this->_if); + curl_setopt($ip_ch, CURLOPT_INTERFACE, $ip_address); $ip_result_page = curl_exec($ip_ch); curl_close($ip_ch); $ip_result_decoded = urldecode($ip_result_page); |