dnsmadeeasy: Invert condition to improve readability
This commit is contained in:
parent
b07aa91ed5
commit
2eb0398cf2
1 changed files with 6 additions and 6 deletions
12
ddclient.in
12
ddclient.in
|
@ -6603,15 +6603,15 @@ sub nic_dnsmadeeasy_update {
|
||||||
next if !header_ok($h, $reply);
|
next if !header_ok($h, $reply);
|
||||||
my @reply = split /\n/, $reply;
|
my @reply = split /\n/, $reply;
|
||||||
my $returned = pop(@reply);
|
my $returned = pop(@reply);
|
||||||
if ($returned =~ qr/success/) {
|
if ($returned !~ qr/success/) {
|
||||||
$config{$h}{'ip'} = $ip;
|
|
||||||
$config{$h}{'mtime'} = $now;
|
|
||||||
$config{$h}{'status'} = 'good';
|
|
||||||
success("$h: IP address set to $ip");
|
|
||||||
} else {
|
|
||||||
my $err = $messages{$returned} ? "$returned: $messages{$returned}" : $returned;
|
my $err = $messages{$returned} ? "$returned: $messages{$returned}" : $returned;
|
||||||
failed("$h: Server said: $err");
|
failed("$h: Server said: $err");
|
||||||
|
next;
|
||||||
}
|
}
|
||||||
|
$config{$h}{'ip'} = $ip;
|
||||||
|
$config{$h}{'mtime'} = $now;
|
||||||
|
$config{$h}{'status'} = 'good';
|
||||||
|
success("$h: IP address set to $ip");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue