diff options
author | Ermal <eri@pfsense.org> | 2011-01-03 22:48:55 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-01-03 22:52:59 +0000 |
commit | aa7c49b9d7628858f1510c184f8409f2eeeb08ad (patch) | |
tree | 9c9508be5d43c60adeebc79ccbde3616010a3812 /etc/inc/dyndns.class | |
parent | e7c9af97eaf93d74284e1fb5cbfba79171138acd (diff) | |
download | pfsense-aa7c49b9d7628858f1510c184f8409f2eeeb08ad.zip pfsense-aa7c49b9d7628858f1510c184f8409f2eeeb08ad.tar.gz |
Ticket #943. Sleep 1 second to give dns time to reload.
Diffstat (limited to 'etc/inc/dyndns.class')
-rw-r--r-- | etc/inc/dyndns.class | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class index 785c902..da8844e 100644 --- a/etc/inc/dyndns.class +++ b/etc/inc/dyndns.class @@ -827,10 +827,7 @@ log_error("DynDns: Current WAN IP: {$wan_ip}"); if (file_exists($this->_cacheFile)) { - if(file_exists($this->_cacheFile)) - $contents = file_get_contents($this->_cacheFile); - else - $contents = ""; + $contents = file_get_contents($this->_cacheFile); list($cacheIP,$cacheTime) = split(':', $contents); $this->_debug($cacheIP.'/'.$cacheTime); $initial = false; @@ -933,4 +930,4 @@ } -?>
\ No newline at end of file +?> |