dondominio: Combine regular expressions to improve readability

This commit is contained in:
Richard Hansen 2024-07-23 00:28:58 -04:00
parent 8b58f7bd99
commit d79ef268bd

View file

@ -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';