diff options
author | sullrich <sullrich@pfsense.org> | 2009-11-28 18:19:41 -0500 |
---|---|---|
committer | sullrich <sullrich@pfsense.org> | 2009-11-28 18:19:41 -0500 |
commit | 07a3b40b0bf931542fd53a48c692594a346b7577 (patch) | |
tree | 635b6296241612b3d918660301f9a72ae77cdd34 | |
parent | 1d683793072326ca7672bdb821415dc47a743b70 (diff) | |
download | pfsense-07a3b40b0bf931542fd53a48c692594a346b7577.zip pfsense-07a3b40b0bf931542fd53a48c692594a346b7577.tar.gz |
Correctly deterimine the IP address for optional interfaces. Ticket #68
-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); |