From ed680fda05f2d2d17a59d2893a6ae45e0cbef164 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Thu, 12 Jan 2017 19:23:20 -0200 Subject: Fix #6153 Initialize cached IP and Time on loop for RFC2136 items, without this the items used on last loop iteration will be used again and second item on the same interface will not be updated --- src/etc/inc/services.inc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/etc/inc/services.inc') diff --git a/src/etc/inc/services.inc b/src/etc/inc/services.inc index 45177d2..8831e07 100644 --- a/src/etc/inc/services.inc +++ b/src/etc/inc/services.inc @@ -2592,10 +2592,14 @@ EOD; $upinst .= "server {$dnsupdate['server']}\n"; } + $cachedipv4 = ''; + $cacheTimev4 = 0; if (file_exists($cacheFile)) { list($cachedipv4, $cacheTimev4) = explode("|", file_get_contents($cacheFile)); } + $cachedipv6 = ''; + $cacheTimev6 = 0; if (file_exists($cacheFilev6)) { list($cachedipv6, $cacheTimev6) = explode("|", file_get_contents($cacheFilev6)); -- cgit v1.1