dondominio: Combine regular expressions to improve readability
This commit is contained in:
parent
8b58f7bd99
commit
d79ef268bd
1 changed files with 1 additions and 1 deletions
|
@ -6532,7 +6532,7 @@ sub nic_dondominio_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 =~ /OK/ || $returned =~ /IP:$ip/) {
|
if ($returned =~ /OK|IP:$ip/) {
|
||||||
$config{$h}{'ip'} = $ip;
|
$config{$h}{'ip'} = $ip;
|
||||||
$config{$h}{'mtime'} = $now;
|
$config{$h}{'mtime'} = $now;
|
||||||
$config{$h}{'status'} = 'good';
|
$config{$h}{'status'} = 'good';
|
||||||
|
|
Loading…
Reference in a new issue