Fix "Scalar value better written as" warning
Also some readability improvements.
This commit is contained in:
parent
af50f7f69d
commit
03ad24829c
1 changed files with 6 additions and 4 deletions
10
ddclient.in
10
ddclient.in
|
@ -4237,10 +4237,12 @@ sub nic_dnsexit2_update {
|
||||||
|
|
||||||
info("Going to update IPv$ipv address to %s for %s.", $ip, $h);
|
info("Going to update IPv$ipv address to %s for %s.", $ip, $h);
|
||||||
$config{$h}{'status-ipv$ipv'} = 'failed';
|
$config{$h}{'status-ipv$ipv'} = 'failed';
|
||||||
|
$total_payload{$ipv} = {
|
||||||
# One key per ipv (4 or 6)
|
name => $h,
|
||||||
my %payload = (name => $h, type => $type, content => $ip, ttl => $config{$h}{'ttl'});
|
type => $type,
|
||||||
@total_payload{$ipv} = \%payload;
|
content => $ip,
|
||||||
|
ttl => $config{$h}{'ttl'},
|
||||||
|
};
|
||||||
};
|
};
|
||||||
# Set the URL of the API endpoint
|
# Set the URL of the API endpoint
|
||||||
my $url = "https://$config{$h}{'server'}$config{$h}{'path'}";
|
my $url = "https://$config{$h}{'server'}$config{$h}{'path'}";
|
||||||
|
|
Loading…
Reference in a new issue