From 7a2d065a2ddbde8a9dcf9709596d4aaba559788c Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Tue, 30 Jun 2020 18:40:58 -0400 Subject: [PATCH] Fix woima protocol implementation `for` loop --- ddclient.in | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ddclient.in b/ddclient.in index 53eff71..9739190 100755 --- a/ddclient.in +++ b/ddclient.in @@ -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'};