dondominio: The IP address is always provided

This commit is contained in:
Richard Hansen 2024-07-23 00:26:14 -04:00
parent fe502abcd8
commit 2823e47c58

View file

@ -6523,8 +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 = "https://$config{$h}{'server'}/plain/?user=$config{$h}{'login'}&password=$config{$h}{'password'}&host=$h&ip="; my $url = "https://$config{$h}{'server'}/plain/?user=$config{$h}{'login'}&password=$config{$h}{'password'}&host=$h&ip=$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) {
failed("$h: Request to $config{$h}{'server'} failed"); failed("$h: Request to $config{$h}{'server'} failed");