From bf001dec385b1b733a01ca07fdc9946ae994c63e Mon Sep 17 00:00:00 2001 From: smos Date: Sun, 3 Jun 2012 13:00:23 +0200 Subject: 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 --- etc/inc/dyndns.class | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'etc/inc/dyndns.class') 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 -- cgit v1.1