dondominio: Consolidate lines for readability
This commit is contained in:
parent
7a43920b99
commit
fe502abcd8
1 changed files with 1 additions and 9 deletions
10
ddclient.in
10
ddclient.in
|
@ -6523,15 +6523,7 @@ sub nic_dondominio_update {
|
||||||
for my $h (@_) {
|
for my $h (@_) {
|
||||||
my $ip = delete $config{$h}{'wantip'};
|
my $ip = delete $config{$h}{'wantip'};
|
||||||
info("$h: setting IP address to $ip");
|
info("$h: setting IP address to $ip");
|
||||||
my $url;
|
my $url = "https://$config{$h}{'server'}/plain/?user=$config{$h}{'login'}&password=$config{$h}{'password'}&host=$h&ip=";
|
||||||
$url = "https://$config{$h}{'server'}/plain/";
|
|
||||||
$url .= "?user=";
|
|
||||||
$url .= $config{$h}{'login'};
|
|
||||||
$url .= "&password=";
|
|
||||||
$url .= $config{$h}{'password'};
|
|
||||||
$url .= "&host=";
|
|
||||||
$url .= $h;
|
|
||||||
$url .= "&ip=";
|
|
||||||
$url .= $ip if $ip;
|
$url .= $ip if $ip;
|
||||||
my $reply = geturl(proxy => opt('proxy'), url => $url);
|
my $reply = geturl(proxy => opt('proxy'), url => $url);
|
||||||
if (!defined($reply) || !$reply) {
|
if (!defined($reply) || !$reply) {
|
||||||
|
|
Loading…
Reference in a new issue