Added
Link Here
|
1 |
--- ddclient.orig 2011-03-11 00:00:19.394750047 -0800 |
2 |
+++ ddclient 2011-03-11 00:04:28.967751644 -0800 |
3 |
@@ -2094,10 +2094,14 @@ |
4 |
} elsif (defined($sub) && &$sub($host)) { |
5 |
$update = 1; |
6 |
|
7 |
- } elsif (($cache{$host}{'static'} ne $config{$host}{'static'}) || |
8 |
- ($cache{$host}{'wildcard'} ne $config{$host}{'wildcard'}) || |
9 |
- ($cache{$host}{'mx'} ne $config{$host}{'mx'}) || |
10 |
- ($cache{$host}{'backupmx'} ne $config{$host}{'backupmx'})) { |
11 |
+ } elsif ((defined($cache{$host}{'static'}) && defined($config{$host}{'static'}) && |
12 |
+ ($cache{$host}{'static'} ne $config{$host}{'static'})) || |
13 |
+ (defined($cache{$host}{'wildcard'}) && defined($config{$host}{'wildcard'}) && |
14 |
+ ($cache{$host}{'wildcard'} ne $config{$host}{'wildcard'})) || |
15 |
+ (defined($cache{$host}{'mx'}) && defined($config{$host}{'mx'}) && |
16 |
+ ($cache{$host}{'mx'} ne $config{$host}{'mx'})) || |
17 |
+ (defined($cache{$host}{'backupmx'}) && defined($config{$host}{'backupmx'}) && |
18 |
+ ($cache{$host}{'backupmx'} ne $config{$host}{'backupmx'})) ) { |
19 |
info("updating %s because host settings have been changed.", $host); |
20 |
$update = 1; |
21 |
|