summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorCedric Ohle <ohle.cedric@googlemail.com>2013-01-03 20:29:08 +0100
committerCedric Ohle <ohle.cedric@googlemail.com>2013-01-03 20:29:08 +0100
commit16fea0ce9611188ad13127600f699152f6e53179 (patch)
tree8fad22ce59b29d195620606656718dc64ffa4c40 /etc
parentd79e9c711ffdb196e05523521d0549259230a7f8 (diff)
downloadpfsense-16fea0ce9611188ad13127600f699152f6e53179.zip
pfsense-16fea0ce9611188ad13127600f699152f6e53179.tar.gz
dynamic dns update url for dns.he.net fixed
Added curl option to use IPv4 Updated url schema
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/dyndns.class4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class
index caf8770..3710efa 100644
--- a/etc/inc/dyndns.class
+++ b/etc/inc/dyndns.class
@@ -434,8 +434,8 @@
log_error("HE.net ({$this->_dnsHost}): DNS update() starting.");
$server = "https://dyn.dns.he.net/nic/update?";
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
- curl_setopt($ch, CURLOPT_USERPWD, $this->_dnsHost . ':' . $this->_dnsPass);
- curl_setopt($ch, CURLOPT_URL, $server . 'hostname=' . $this->_dnsHost);
+ curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4 );
+ curl_setopt($ch, CURLOPT_URL, $server . 'hostname=' . $this->_dnsHost . '&password=' . $this->_dnsPass . '&myip=' . $this->_dnsIP);
break;
case 'he-net-tunnelbroker':
$needsIP = FALSE;
OpenPOWER on IntegriCloud