mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Update services.inc
This commit is contained in:
parent
09cb9dee69
commit
5d1185ced7
@ -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";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user