diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-12-15 23:24:50 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-12-15 23:24:50 +0000 |
commit | 8b7207755b2567f2472be60c74999d5e161f7f74 (patch) | |
tree | d7d8808909c4dad70ef1348919899c44d5231309 /etc/inc/dyndns.class | |
parent | 7c80507f4ab8ad4241505447eb131169502e4ef3 (diff) | |
download | pfsense-8b7207755b2567f2472be60c74999d5e161f7f74.zip pfsense-8b7207755b2567f2472be60c74999d5e161f7f74.tar.gz |
Set time and wan_ip earlier
Diffstat (limited to 'etc/inc/dyndns.class')
-rw-r--r-- | etc/inc/dyndns.class | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class index c2153de..15980bc 100644 --- a/etc/inc/dyndns.class +++ b/etc/inc/dyndns.class @@ -447,12 +447,12 @@ } if($successful_update == true) { + $wan_ip = get_current_wan_address(); + $currentTime = time(); /* Write WAN IP to cache file */ log_error("phpDynDNS: updating cache file {$this->_cacheFile}: {$wan_ip}"); conf_mount_rw(); $file = fopen($this->_cacheFile, 'w'); - $wan_ip = get_current_wan_address(); - $currentTime = time(); fwrite($file, $wan_ip.':'.$currentTime); fclose($file); conf_mount_ro(); |