summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-06-01 13:52:35 -0300
committerRenato Botelho <garga@FreeBSD.org>2015-06-01 13:53:10 -0300
commit84522eba58a5f9533d02cafd6c5c0b9fbce6a7e4 (patch)
treee04b7364188d24101f7565955d0ede26b86c67f7 /etc/inc
parentb144d13d315726eadd07506c322d1ea73c7be6df (diff)
downloadpfsense-84522eba58a5f9533d02cafd6c5c0b9fbce6a7e4.zip
pfsense-84522eba58a5f9533d02cafd6c5c0b9fbce6a7e4.tar.gz
Pass interface to CURLOPT_INTERFACE instead of IP addres, also use 'if!' flag to avoid CURL trying to resolve the interface name
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/dyndns.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class
index b23f6e2..2c0b2d3 100644
--- a/etc/inc/dyndns.class
+++ b/etc/inc/dyndns.class
@@ -289,7 +289,7 @@
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_USERAGENT, $this->_UserAgent);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
- curl_setopt($ch, CURLOPT_INTERFACE, $this->_dnsRequestIfIP);
+ curl_setopt($ch, CURLOPT_INTERFACE, 'if!' . $this->_dnsRequestIf);
curl_setopt($ch, CURLOPT_TIMEOUT, 120); // Completely empirical
}
OpenPOWER on IntegriCloud