freemyip: Consolidate lines for readability
This commit is contained in:
parent
62154f9869
commit
b3006dd6c6
1 changed files with 1 additions and 6 deletions
|
@ -6418,12 +6418,7 @@ sub nic_freemyip_update {
|
||||||
my $ip = delete $config{$h}{'wantip'};
|
my $ip = delete $config{$h}{'wantip'};
|
||||||
info("setting IP address to %s for %s", $ip, $h);
|
info("setting IP address to %s for %s", $ip, $h);
|
||||||
verbose("UPDATE:", "updating %s", $h);
|
verbose("UPDATE:", "updating %s", $h);
|
||||||
my $url;
|
my $url = "https://$config{$h}{'server'}/update?token=$config{$h}{'password'}&domain=$h";
|
||||||
$url = "https://$config{$h}{'server'}/update";
|
|
||||||
$url .= "?token=";
|
|
||||||
$url .= $config{$h}{'password'};
|
|
||||||
$url .= "&domain=";
|
|
||||||
$url .= $h;
|
|
||||||
my $reply = geturl(proxy => opt('proxy'), url => $url);
|
my $reply = geturl(proxy => opt('proxy'), url => $url);
|
||||||
if (!defined($reply) || !$reply) {
|
if (!defined($reply) || !$reply) {
|
||||||
failed("updating %s: Could not connect to %s.", $h, $config{$h}{'server'});
|
failed("updating %s: Could not connect to %s.", $h, $config{$h}{'server'});
|
||||||
|
|
Loading…
Reference in a new issue