summaryrefslogtreecommitdiffstats
path: root/etc/inc/dyndns.class
diff options
context:
space:
mode:
authorsullrich <sullrich@pfsense.org>2009-11-28 18:19:41 -0500
committersullrich <sullrich@pfsense.org>2009-11-28 18:19:41 -0500
commit07a3b40b0bf931542fd53a48c692594a346b7577 (patch)
tree635b6296241612b3d918660301f9a72ae77cdd34 /etc/inc/dyndns.class
parent1d683793072326ca7672bdb821415dc47a743b70 (diff)
downloadpfsense-07a3b40b0bf931542fd53a48c692594a346b7577.zip
pfsense-07a3b40b0bf931542fd53a48c692594a346b7577.tar.gz
Correctly deterimine the IP address for optional interfaces. Ticket #68
Diffstat (limited to 'etc/inc/dyndns.class')
-rw-r--r--etc/inc/dyndns.class11
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);
OpenPOWER on IntegriCloud