From bab9d9483e2ebecae04d99bfccbd3a828942c639 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Tue, 25 Jun 2024 21:55:46 -0400 Subject: [PATCH] infomaniak: Move variable declaration to definition --- ddclient.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ddclient.in b/ddclient.in index 5062119..a5ce3fd 100755 --- a/ddclient.in +++ b/ddclient.in @@ -8019,10 +8019,9 @@ sub nic_infomaniak_update { $url2 .= "&myip=$ip"; $url2 .= "&username=$config{$h}{'login'}"; $url2 .= "&password=$config{$h}{'password'}"; - my $reply; for my $url ($url1, $url2) { info("trying update with %s", $url); - $reply = geturl(proxy => opt('proxy'), url => $url); + my $reply = geturl(proxy => opt('proxy'), url => $url); if (!defined($reply) || !$reply) { info("could not update %s using url %s, trying next one", $h, $url); next;