Project

General

Profile

« Previous | Next » 

Revision 7db3d1c7

Added by Robert Nelson about 10 years ago

Use address types instead of addresses.

View differences:

etc/inc/services.inc
2422 2422

  
2423 2423
				conf_mount_rw();
2424 2424
				/* Update IPv4 if we have it. */
2425
				if (is_ipaddrv4($wanip) && $dnsupdate['addresses'] != "ipv6") {
2425
				if (is_ipaddrv4($wanip) && $dnsupdate['addresstypes'] != "ipv6") {
2426 2426
					if (($wanip != $cachedipv4) || (($currentTime - $cacheTimev4) > $maxCacheAgeSecs) || $forced) {
2427 2427
						$upinst .= "update delete {$dnsupdate['host']}. A\n";
2428 2428
						$upinst .= "update add {$dnsupdate['host']}. {$dnsupdate['ttl']} A {$wanip}\n";
......
2438 2438
				}
2439 2439

  
2440 2440
				/* Update IPv6 if we have it. */
2441
				if (is_ipaddrv6($wanipv6) && $dnsupdate['addresses'] != "ipv4") {
2441
				if (is_ipaddrv6($wanipv6) && $dnsupdate['addresstypes'] != "ipv4") {
2442 2442
					if (($wanipv6 != $cachedipv6) || (($currentTime - $cacheTimev6) > $maxCacheAgeSecs) || $forced) {
2443 2443
						$upinst .= "update delete {$dnsupdate['host']}. AAAA\n";
2444 2444
						$upinst .= "update add {$dnsupdate['host']}. {$dnsupdate['ttl']} AAAA {$wanipv6}\n";

Also available in: Unified diff