From 38147d7e0979018e0415609bbb5709fbd857544f Mon Sep 17 00:00:00 2001 From: wimpunk Date: Sat, 2 Dec 2006 14:53:59 +0000 Subject: [PATCH] Applied update-new-config.patch: Force update if config has changed (submitted by Torsten) git-svn-id: svn+ssh://svn.code.sf.net/p/ddclient/code/trunk/svn@36 3873ddee-7413-0410-b6c4-c2c57c1ab35a --- ddclient | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ddclient b/ddclient index ed5c25d..fca6f5a 100755 --- a/ddclient +++ b/ddclient @@ -2004,6 +2004,13 @@ sub nic_updateable { } elsif (defined($sub) && &$sub($host)) { $update = 1; + } elsif (($cache{$host}{'static'} ne $config{$host}{'static'}) || + ($cache{$host}{'wildcard'} ne $config{$host}{'wildcard'}) || + ($cache{$host}{'mx'} ne $config{$host}{'mx'}) || + ($cache{$host}{'backupmx'} ne $config{$host}{'backupmx'})) { + info("updating %s because host settings have been changed.", $host); + $update = 1; + } else { success("%s: skipped: IP address was already set to %s.", $host, $ip) if opt('verbose');