diff options
author | Renato Botelho <garga@FreeBSD.org> | 2015-06-01 13:52:35 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-06-01 13:53:10 -0300 |
commit | 84522eba58a5f9533d02cafd6c5c0b9fbce6a7e4 (patch) | |
tree | e04b7364188d24101f7565955d0ede26b86c67f7 /etc/inc | |
parent | b144d13d315726eadd07506c322d1ea73c7be6df (diff) | |
download | pfsense-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.class | 2 |
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 } |