summaryrefslogtreecommitdiffstats
path: root/etc/inc/services.inc
diff options
context:
space:
mode:
authorFlorian Asche <github@florian-asche.de>2014-03-10 22:11:31 +0100
committerFlorian Asche <github@florian-asche.de>2014-03-10 22:11:31 +0100
commit181386d6136eb6df9f3e133b625061890714d711 (patch)
tree5168f3ee4caae24c146bbf16d6ee148f12a49e45 /etc/inc/services.inc
parent3c6f29c0b58cd5b405b3612c7d53f1bc252cd223 (diff)
downloadpfsense-181386d6136eb6df9f3e133b625061890714d711.zip
pfsense-181386d6136eb6df9f3e133b625061890714d711.tar.gz
Update services.inc
Added CURL setops from dyndns.class
Diffstat (limited to 'etc/inc/services.inc')
-rw-r--r--etc/inc/services.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc
index ec9d05f..cc6da7a 100644
--- a/etc/inc/services.inc
+++ b/etc/inc/services.inc
@@ -1686,6 +1686,8 @@ function dyndnsCheckIP($int) {
curl_setopt($ip_ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ip_ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ip_ch, CURLOPT_INTERFACE, $ip_address);
+ curl_setopt($ip_ch, CURLOPT_CONNECTTIMEOUT, '30');
+ curl_setopt($ip_ch, CURLOPT_TIMEOUT, 120);
curl_setopt($ip_ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
$ip_result_page = curl_exec($ip_ch);
curl_close($ip_ch);
OpenPOWER on IntegriCloud