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
This commit is contained in:
wimpunk 2006-12-02 14:53:59 +00:00
parent be05257113
commit 38147d7e09

View file

@ -2004,6 +2004,13 @@ sub nic_updateable {
} elsif (defined($sub) && &$sub($host)) { } elsif (defined($sub) && &$sub($host)) {
$update = 1; $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 { } else {
success("%s: skipped: IP address was already set to %s.", $host, $ip) success("%s: skipped: IP address was already set to %s.", $host, $ip)
if opt('verbose'); if opt('verbose');