diff options
-rw-r--r-- | etc/inc/dyndns.class | 2 | ||||
-rw-r--r-- | etc/inc/services.inc | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class index a5799d9..a07a793 100644 --- a/etc/inc/dyndns.class +++ b/etc/inc/dyndns.class @@ -124,7 +124,7 @@ $this->_ifIP = get_interface_ip($dnsIf); // Ensure that we where able to lookup the IP - if(!$this->_ifIP) { + if(!is_ipaddr($this->_ifIP)) { log_error("There was an error trying to determine the IP for interface - {$dnsIf}({$this->_if}). Probably interface has no ip or is down. Dyndns update not possible for {$dnsService}."); return; } diff --git a/etc/inc/services.inc b/etc/inc/services.inc index 34f35e3..3035b8e 100644 --- a/etc/inc/services.inc +++ b/etc/inc/services.inc @@ -604,7 +604,6 @@ function services_dyndns_configure_client($conf) { $dnsWilcard = $conf['wildcard'], $dnsMX = $conf['mx'], $dnsIf = "{$conf['interface']}"); - } function services_dyndns_configure($int = "") { @@ -1371,4 +1370,4 @@ function install_cron_job($command, $active=false, $minute="0", $hour="*", $mont configure_cron(); } -?>
\ No newline at end of file +?> |