summaryrefslogtreecommitdiffstats
path: root/etc
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:52:35 -0300
commit4486b75178e5b2c54429b542e98c33dcbaa22b83 (patch)
tree45131a5b792f2791527cf1cde979a0bb8b1a2408 /etc
parent3b9dfaf2f92c16998f54ee1b909e3df690831f94 (diff)
downloadpfsense-4486b75178e5b2c54429b542e98c33dcbaa22b83.zip
pfsense-4486b75178e5b2c54429b542e98c33dcbaa22b83.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')
-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 db67208..473c76f 100644
--- a/etc/inc/dyndns.class
+++ b/etc/inc/dyndns.class
@@ -274,7 +274,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