From e0a1283b10b8519c08c85c6feb045e8aa20352b5 Mon Sep 17 00:00:00 2001 From: wimpunk Date: Wed, 9 Mar 2011 07:39:18 +0000 Subject: [PATCH] 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 --- ddclient | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/ddclient b/ddclient index 876cb6e..9771d99 100755 --- a/ddclient +++ b/ddclient @@ -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;