diff options
author | Florian Asche <github@florian-asche.de> | 2014-03-10 19:42:41 +0100 |
---|---|---|
committer | Florian Asche <github@florian-asche.de> | 2014-03-10 19:42:41 +0100 |
commit | 5244c510a264802b425251d474c0db053c73600f (patch) | |
tree | a8819888e0bea05b7c93bd04de036d5c14e6eb57 /etc | |
parent | 52c7f0d4ac88b1c981340edb66e1290eb057d89f (diff) | |
download | pfsense-5244c510a264802b425251d474c0db053c73600f.zip pfsense-5244c510a264802b425251d474c0db053c73600f.tar.gz |
Update services.inc
Prepared to make $hosttocheck configureable
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/services.inc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc index e4fcdb0..8298d99 100644 --- a/etc/inc/services.inc +++ b/etc/inc/services.inc @@ -1681,9 +1681,8 @@ function dyndnsCheckIP($int) { // Avoid the long wait for the external check to timeout. if (stristr($gateways_status[$config['interfaces'][$int]['gateway']]['status'],"down")) return "down"; - $hosttocheck = "checkip.dyndns.org"; - $checkip = gethostbyname($hosttocheck); - $ip_ch = curl_init("http://{$checkip}"); + $hosttocheck = "http://checkip.dyndns.org"; + $ip_ch = curl_init($hosttocheck); curl_setopt($ip_ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ip_ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ip_ch, CURLOPT_INTERFACE, $ip_address); |