diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-12-17 21:40:34 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-12-17 21:40:34 +0000 |
commit | 0ede1bf7d36e02bf65cc3f9628023da8cc6cc158 (patch) | |
tree | a98e7d5e5f0bb9f94832a980cc599afd7ebd05b7 /etc | |
parent | da9b711a2e3d2fdfaa095d2a43277da2d81240e6 (diff) | |
download | pfsense-0ede1bf7d36e02bf65cc3f9628023da8cc6cc158.zip pfsense-0ede1bf7d36e02bf65cc3f9628023da8cc6cc158.tar.gz |
Set $successful_update for NOCHG events
Ticket #736
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/dyndns.class | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class index 15980bc..2427346 100644 --- a/etc/inc/dyndns.class +++ b/etc/inc/dyndns.class @@ -270,6 +270,7 @@ $status = "phpDynDNS: (Error) Not A FQDN!"; } else if (preg_match('/nochg/i', $data)) { $status = "phpDynDNS: (Success) No Change In IP Address"; + $successful_update = true; } else if (preg_match('/good/i', $data)) { $status = "phpDynDNS: (Success) IP Address Changed Successfully! (".$this->_dnsIP.")"; $successful_update = true; @@ -447,9 +448,9 @@ } if($successful_update == true) { - $wan_ip = get_current_wan_address(); - $currentTime = time(); /* Write WAN IP to cache file */ + $wan_ip = get_current_wan_address(); + $currentTime = time(); log_error("phpDynDNS: updating cache file {$this->_cacheFile}: {$wan_ip}"); conf_mount_rw(); $file = fopen($this->_cacheFile, 'w'); |