Patching with nic_updateable-warning patch provided by antespi in ticket #2

git-svn-id: svn+ssh://svn.code.sf.net/p/ddclient/code/trunk@124 3873ddee-7413-0410-b6c4-c2c57c1ab35a
This commit is contained in:
wimpunk 2011-03-09 07:39:18 +00:00
parent 4a21e0ac53
commit e0a1283b10

View file

@ -2165,11 +2165,14 @@ 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'})) {
} elsif ((defined($cache{$host}{'static'}) && defined($config{$host}{'static'}) &&
($cache{$host}{'static'} ne $config{$host}{'static'})) ||
(defined($cache{$host}{'wildcard'}) && defined($config{$host}{'wildcard'}) &&
($cache{$host}{'wildcard'} ne $config{$host}{'wildcard'})) ||
(defined($cache{$host}{'mx'}) && defined($config{$host}{'mx'}) &&
($cache{$host}{'mx'} ne $config{$host}{'mx'})) ||
(defined($cache{$host}{'backupmx'}) && defined($config{$host}{'backupmx'}) &&
($cache{$host}{'backupmx'} ne $config{$host}{'backupmx'})) ) {
info("updating %s because host settings have been changed.", $host);
$update = 1;