From 0ede1bf7d36e02bf65cc3f9628023da8cc6cc158 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 17 Dec 2005 21:40:34 +0000 Subject: [PATCH] Set $successful_update for NOCHG events Ticket #736 --- etc/inc/dyndns.class | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class index 15980bcc35..2427346076 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');