Fix woima protocol implementation for loop

This commit is contained in:
Richard Hansen 2020-06-30 18:40:58 -04:00
parent 43c0581334
commit 7a2d065a2d

View file

@ -4852,9 +4852,7 @@ sub nic_woima_update {
'nochg' => 'No update required; unnecessary attempts to change to the current address are considered abusive',
);
my @hosts = @_;
foreach my $key (keys @hosts) {
my $h = $hosts[$key];
for my $h (@_) {
my $ip = $config{$h}{'wantip'};
delete $config{$h}{'wantip'};