diff options
-rw-r--r-- | etc/inc/dyndns.class | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class index 06244e4..4c2f0d2 100644 --- a/etc/inc/dyndns.class +++ b/etc/inc/dyndns.class @@ -167,7 +167,7 @@ $server = $this->_dnsServer; if($this->_dnsPort) $port = ":" . $this->_dnsPort; - curl_setopt($ch, CURLOPT_URL, '?system=dyndns&hostname='.$this->_dnsHost.'&myip='.$this->_dnsIP.'&wildcard='.$this->_dnsWildcard.'&mx='.$this->_dnsMX.'&backmx=NO'); + curl_setopt($ch, CURLOPT_URL, $server.$port.'?system=dyndns&hostname='.$this->_dnsHost.'&myip='.$this->_dnsIP.'&wildcard='.$this->_dnsWildcard.'&mx='.$this->_dnsMX.'&backmx=NO'); $data = curl_exec($ch); if (@curl_error($ch)) log_error("Curl errror occured: " . curl_error($ch)); curl_close($ch); @@ -184,7 +184,7 @@ $server = $this->_dnsServer; if($this->_dnsPort) $port = ":" . $this->_dnsPort; - curl_setopt($ch, CURLOPT_URL, '?system=statdns&hostname='.$this->_dnsHost.'&myip='.$this->_dnsIP.'&wildcard='.$this->_dnsWildcard.'&mx='.$this->_dnsMX.'&backmx=NO'); + curl_setopt($ch, CURLOPT_URL, $server.$port.'?system=statdns&hostname='.$this->_dnsHost.'&myip='.$this->_dnsIP.'&wildcard='.$this->_dnsWildcard.'&mx='.$this->_dnsMX.'&backmx=NO'); $data = curl_exec($ch); if (@curl_error($ch)) log_error("Curl errror occured: " . curl_error($ch)); curl_close($ch); @@ -201,7 +201,7 @@ $server = $this->_dnsServer; if($this->_dnsPort) $port = ":" . $this->_dnsPort; - curl_setopt($ch, CURLOPT_URL, '?system=custom&hostname='.$this->_dnsHost.'&myip='.$this->_dnsIP.'&wildcard='.$this->_dnsWildcard.'&mx='.$this->_dnsMX.'&backmx=NO'); + curl_setopt($ch, CURLOPT_URL, $server.$port.'?system=custom&hostname='.$this->_dnsHost.'&myip='.$this->_dnsIP.'&wildcard='.$this->_dnsWildcard.'&mx='.$this->_dnsMX.'&backmx=NO'); $data = curl_exec($ch); if (@curl_error($ch)) log_error("Curl errror occured: " . curl_error($ch)); curl_close($ch); |