duckdns: Consolidate lines to improve readability
This commit is contained in:
parent
98ed129b20
commit
8a334fd9cf
1 changed files with 1 additions and 6 deletions
|
@ -6347,12 +6347,7 @@ sub nic_duckdns_update {
|
||||||
info("setting IPv4 address to %s for %s", $ipv4, $h) if $ipv4;
|
info("setting IPv4 address to %s for %s", $ipv4, $h) if $ipv4;
|
||||||
info("setting IPv6 address to %s for %s", $ipv6, $h) if $ipv6;
|
info("setting IPv6 address to %s for %s", $ipv6, $h) if $ipv6;
|
||||||
verbose("UPDATE:", "updating %s", $h);
|
verbose("UPDATE:", "updating %s", $h);
|
||||||
my $url;
|
my $url = "https://$config{$h}{'server'}/update?domains=$h&token=$config{$h}{'password'}";
|
||||||
$url = "https://$config{$h}{'server'}/update";
|
|
||||||
$url .= "?domains=";
|
|
||||||
$url .= $h;
|
|
||||||
$url .= "&token=";
|
|
||||||
$url .= $config{$h}{'password'};
|
|
||||||
$url .= "&ip=$ipv4" if $ipv4;
|
$url .= "&ip=$ipv4" if $ipv4;
|
||||||
$url .= "&ipv6=$ipv6" if $ipv6;
|
$url .= "&ipv6=$ipv6" if $ipv6;
|
||||||
my $reply = geturl(proxy => opt('proxy'), url => $url);
|
my $reply = geturl(proxy => opt('proxy'), url => $url);
|
||||||
|
|
Loading…
Reference in a new issue