infomaniak: Move variable declaration to definition

This commit is contained in:
Richard Hansen 2024-06-25 21:55:46 -04:00
parent 134e47b61d
commit bab9d9483e

View file

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