diff options
Diffstat (limited to 'etc/inc/dyndns.class')
-rw-r--r-- | etc/inc/dyndns.class | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class index af425b11..3ca641e 100644 --- a/etc/inc/dyndns.class +++ b/etc/inc/dyndns.class @@ -119,8 +119,12 @@ $this->_dnsWildcard = $dnsWildcard; $this->_dnsMX = $dnsMX; $this->_if = get_real_interface($dnsIf); - - $this->_dnsIP = get_interface_ip($dnsIf); + $this->_dnsIP = get_interface_ip($this->_if); + + // Ensure that we where able to lookup the IP + if(!$this->_dnsIP) + log_error("There was an error trying to determine the IP for interface - {$dnsIf} - {$this->_if}."); + $this->_debugID = rand(1000000, 9999999); if ($this->_detectChange() == FALSE) { @@ -141,8 +145,7 @@ $this->_dnsService == 'loopia' || $this->_dnsService == 'staticcling'|| $this->_dnsService == 'dnsexit' || - $this->_dnsService == 'opendns') - { + $this->_dnsService == 'opendns') { $this->_update(); } else { $this->_error(6); |