dondominio: The IP address is always provided
This commit is contained in:
parent
fe502abcd8
commit
2823e47c58
1 changed files with 1 additions and 2 deletions
|
@ -6523,8 +6523,7 @@ sub nic_dondominio_update {
|
|||
for my $h (@_) {
|
||||
my $ip = delete $config{$h}{'wantip'};
|
||||
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=";
|
||||
$url .= $ip if $ip;
|
||||
my $url = "https://$config{$h}{'server'}/plain/?user=$config{$h}{'login'}&password=$config{$h}{'password'}&host=$h&ip=$ip";
|
||||
my $reply = geturl(proxy => opt('proxy'), url => $url);
|
||||
if (!defined($reply) || !$reply) {
|
||||
failed("$h: Request to $config{$h}{'server'} failed");
|
||||
|
|
Loading…
Reference in a new issue