From b3006dd6c6850f7a61790b4cf585cf8a98b7271e Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Sun, 21 Jul 2024 20:48:42 -0400 Subject: [PATCH] freemyip: Consolidate lines for readability --- ddclient.in | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ddclient.in b/ddclient.in index abe3dd4..d10db43 100755 --- a/ddclient.in +++ b/ddclient.in @@ -6418,12 +6418,7 @@ sub nic_freemyip_update { 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'}/update"; - $url .= "?token="; - $url .= $config{$h}{'password'}; - $url .= "&domain="; - $url .= $h; + my $url = "https://$config{$h}{'server'}/update?token=$config{$h}{'password'}&domain=$h"; my $reply = geturl(proxy => opt('proxy'), url => $url); if (!defined($reply) || !$reply) { failed("updating %s: Could not connect to %s.", $h, $config{$h}{'server'});