Merge pull request #214 from rhansen/woima

Fix woima protocol implementation `for` loop
This commit is contained in:
Sandro 2020-07-01 00:45:31 +02:00 committed by GitHub
commit 504e326274
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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