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:
parent
be05257113
commit
38147d7e09
1 changed files with 7 additions and 0 deletions
7
ddclient
7
ddclient
|
@ -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');
|
||||||
|
|
Loading…
Reference in a new issue