summaryrefslogtreecommitdiffstats
path: root/etc/inc/dyndns.class
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/dyndns.class')
-rw-r--r--etc/inc/dyndns.class1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class
index db015cc..ac15f98 100644
--- a/etc/inc/dyndns.class
+++ b/etc/inc/dyndns.class
@@ -451,6 +451,7 @@
log_error("phpDynDNS: updating cache file {$this->_cacheFile}: {$wan_ip}");
conf_mount_rw();
$file = fopen($this->_cacheFile, 'w');
+ $wan_ip = get_current_wan_address();
fwrite($file, $wan_ip.':'.$currentTime);
fclose($file);
conf_mount_ro();
OpenPOWER on IntegriCloud