summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-06-01 13:53:03 -0300
committerRenato Botelho <garga@FreeBSD.org>2015-06-01 13:53:03 -0300
commit3e8ee192b42c82f3767dfdb12f6402a7f1b64e15 (patch)
tree764c6fb4396bd1c2ab5b0ee47596bf6c552afe84 /etc
parent4486b75178e5b2c54429b542e98c33dcbaa22b83 (diff)
downloadpfsense-3e8ee192b42c82f3767dfdb12f6402a7f1b64e15.zip
pfsense-3e8ee192b42c82f3767dfdb12f6402a7f1b64e15.tar.gz
Use 'host!' flag when setting CURLOPT_INTERFACE, as recommended by CURL docs
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/dyndns.class2
-rw-r--r--etc/inc/services.inc2
2 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class
index 473c76f..73c6765 100644
--- a/etc/inc/dyndns.class
+++ b/etc/inc/dyndns.class
@@ -1377,7 +1377,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 b661f16..73c2411 100644
--- a/etc/inc/services.inc
+++ b/etc/inc/services.inc
@@ -1773,7 +1773,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);
OpenPOWER on IntegriCloud