From 17a002cbd62d9459a354935468bef36b14997cfb Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Tue, 23 Jul 2024 00:17:32 -0400 Subject: [PATCH] dondominio: Whitespace fixes --- ddclient.in | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ddclient.in b/ddclient.in index 97a13bb..9798c0c 100755 --- a/ddclient.in +++ b/ddclient.in @@ -6520,14 +6520,12 @@ EoEXAMPLE sub nic_dondominio_update { debug("\nnic_dondominio_update -------------------"); - for my $h (@_) { my $ip = delete $config{$h}{'wantip'}; info("setting IP address to %s for %s", $ip, $h); verbose("UPDATE:", "updating %s", $h); - my $url; - $url = "https://$config{$h}{'server'}/plain/"; + $url = "https://$config{$h}{'server'}/plain/"; $url .= "?user="; $url .= $config{$h}{'login'}; $url .= "&password="; @@ -6536,16 +6534,12 @@ sub nic_dondominio_update { $url .= $h; $url .= "&ip="; $url .= $ip if $ip; - - my $reply = geturl(proxy => opt('proxy'), url => $url); - if (!defined($reply) || !$reply) { failed("updating %s: Could not connect to %s.", $h, $config{$h}{'server'}); next; } next if !header_ok($h, $reply); - my @reply = split /\n/, $reply; my $returned = pop(@reply); if ($returned =~ /OK/ || $returned =~ /IP:$ip/) {