From 344c36c60700a95cb5a82e0b474084be97043ec8 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@36 3873ddee-7413-0410-b6c4-c2c57c1ab35a --- svn/ddclient | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/svn/ddclient b/svn/ddclient index ed5c25d..fca6f5a 100755 --- a/svn/ddclient +++ b/svn/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');