From 5d1185ced7e08036759feebdfa7b9e0cbe98427d Mon Sep 17 00:00:00 2001 From: Florian Asche Date: Mon, 10 Mar 2014 19:18:21 +0100 Subject: Update services.inc --- etc/inc/services.inc | 5 ----- 1 file changed, 5 deletions(-) (limited to 'etc/inc/services.inc') diff --git a/etc/inc/services.inc b/etc/inc/services.inc index bd6804b..11f2d04 100644 --- a/etc/inc/services.inc +++ b/etc/inc/services.inc @@ -2112,9 +2112,7 @@ function services_dnsupdate_process($int = "", $updatehost = "", $forced = false else $wanip = get_interface_ip($dnsupdate['interface']); - //$wanip = get_interface_ip($dnsupdate['interface']); $wanipv6 = get_interface_ipv6($dnsupdate['interface']); - $cacheFile = "{$g['conf_path']}/dyndns_{$dnsupdate['interface']}_rfc2136_" . escapeshellarg($dnsupdate['host']) . "_{$dnsupdate['server']}.cache"; $currentTime = time(); @@ -2178,9 +2176,6 @@ EOD; /* Update IPv4 if we have it. */ if (is_ipaddrv4($wanip)) { if (($wanip != $cachedipv4) || (($currentTime - $cacheTimev4) > $maxCacheAgeSecs) || $forced) { - if (isset($dnsupdate['usepublicip'])) { - $wanip = dyndnsCheckIP($dnsupdate['interface']); - } $upinst .= "update delete {$dnsupdate['host']}. A\n"; $upinst .= "update add {$dnsupdate['host']}. {$dnsupdate['ttl']} A {$wanip}\n"; $notify_text .= sprintf(gettext("DynDNS updated IP Address (A) for {$dnsupdate['host']} on %s (%s) to %s"), convert_real_interface_to_friendly_descr($if), $if, $wanip) . "\n"; -- cgit v1.1