summaryrefslogtreecommitdiffstats
path: root/etc/inc/dyndns.class
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2012-06-03 13:00:23 +0200
committersmos <seth.mos@dds.nl>2012-06-03 13:00:23 +0200
commitbf001dec385b1b733a01ca07fdc9946ae994c63e (patch)
tree704407a028674d678a1a180014a7cfa3cca011e8 /etc/inc/dyndns.class
parent3e1eec5850cdd50974190146459c9361fe156ff5 (diff)
downloadpfsense-bf001dec385b1b733a01ca07fdc9946ae994c63e.zip
pfsense-bf001dec385b1b733a01ca07fdc9946ae994c63e.tar.gz
Allow for failover DynDNS hostnames.
replace get_real_interface() calls with get_failover_interface. If it isn't a group we call get_real_interface() anyhow. We can't put the logic inside get_real_interface() as this would create a recursion Redmine ticket #1965
Diffstat (limited to 'etc/inc/dyndns.class')
-rw-r--r--etc/inc/dyndns.class5
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class
index e5ae147..9b97781 100644
--- a/etc/inc/dyndns.class
+++ b/etc/inc/dyndns.class
@@ -153,11 +153,12 @@
$this->_dnsMX = $dnsMX;
$this->_dnsZoneID = $dnsZoneID;
$this->_dnsTTL = $dnsTTL;
- $this->_if = get_real_interface($dnsIf);
+ $this->_if = get_failover_interface($dnsIf);
$this->_checkIP();
$this->_dnsUpdateURL = $dnsUpdateURL;
$this->_dnsResultMatch = $dnsResultMatch;
- $this->_dnsRequestIf = get_real_interface($dnsRequestIf);
+ $this->_dnsRequestIf = get_failover_interface($dnsRequestIf);
+ log_error("running get_failover_interface for {$dnsRequestIf}. found {$this->_dnsRequestIf}");
$this->_dnsRequestIfIP = get_interface_ip($dnsRequestIf);
// Ensure that we where able to lookup the IP
OpenPOWER on IntegriCloud