diff options
author | Renato Botelho <garga@FreeBSD.org> | 2015-06-01 13:53:03 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-06-01 13:53:11 -0300 |
commit | e1eee3d27f95b462b685858f9085e2c0522f951d (patch) | |
tree | fbe1153c495ce71887c178144789ab8831fc9b0e /etc/inc | |
parent | 84522eba58a5f9533d02cafd6c5c0b9fbce6a7e4 (diff) | |
download | pfsense-e1eee3d27f95b462b685858f9085e2c0522f951d.zip pfsense-e1eee3d27f95b462b685858f9085e2c0522f951d.tar.gz |
Use 'host!' flag when setting CURLOPT_INTERFACE, as recommended by CURL docs
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/dyndns.class | 2 | ||||
-rw-r--r-- | etc/inc/services.inc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class index 2c0b2d3..ff708fd 100644 --- a/etc/inc/dyndns.class +++ b/etc/inc/dyndns.class @@ -1600,7 +1600,7 @@ $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, $ip_address); + curl_setopt($ip_ch, CURLOPT_INTERFACE, 'host!' . $ip_address); curl_setopt($ip_ch, CURLOPT_CONNECTTIMEOUT, '30'); curl_setopt($ip_ch, CURLOPT_TIMEOUT, 120); if ($this->_useIPv6 == false) { diff --git a/etc/inc/services.inc b/etc/inc/services.inc index aaba9d7..8ea9f9d 100644 --- a/etc/inc/services.inc +++ b/etc/inc/services.inc @@ -1904,7 +1904,7 @@ function dyndnsCheckIP($int) { $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); + curl_setopt($ip_ch, CURLOPT_INTERFACE, 'host!' . $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); |