dondominio: Consolidate lines for readability

This commit is contained in:
Richard Hansen 2024-07-23 00:25:48 -04:00
parent 7a43920b99
commit fe502abcd8

View file

@ -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) {