dondominio: Delete unnecessary comments
This commit is contained in:
parent
d62495c41e
commit
e155e1bf2c
1 changed files with 0 additions and 5 deletions
|
@ -6521,14 +6521,11 @@ EoEXAMPLE
|
||||||
sub nic_dondominio_update {
|
sub nic_dondominio_update {
|
||||||
debug("\nnic_dondominio_update -------------------");
|
debug("\nnic_dondominio_update -------------------");
|
||||||
|
|
||||||
## update each configured host
|
|
||||||
## should improve to update in one pass
|
|
||||||
for my $h (@_) {
|
for my $h (@_) {
|
||||||
my $ip = delete $config{$h}{'wantip'};
|
my $ip = delete $config{$h}{'wantip'};
|
||||||
info("setting IP address to %s for %s", $ip, $h);
|
info("setting IP address to %s for %s", $ip, $h);
|
||||||
verbose("UPDATE:", "updating %s", $h);
|
verbose("UPDATE:", "updating %s", $h);
|
||||||
|
|
||||||
# Set the URL that we're going to update
|
|
||||||
my $url;
|
my $url;
|
||||||
$url = "https://$config{$h}{'server'}/plain/";
|
$url = "https://$config{$h}{'server'}/plain/";
|
||||||
$url .= "?user=";
|
$url .= "?user=";
|
||||||
|
@ -6541,10 +6538,8 @@ sub nic_dondominio_update {
|
||||||
$url .= $ip if $ip;
|
$url .= $ip if $ip;
|
||||||
|
|
||||||
|
|
||||||
# Try to get URL
|
|
||||||
my $reply = geturl(proxy => opt('proxy'), url => $url);
|
my $reply = geturl(proxy => opt('proxy'), url => $url);
|
||||||
|
|
||||||
# No response, declare as failed
|
|
||||||
if (!defined($reply) || !$reply) {
|
if (!defined($reply) || !$reply) {
|
||||||
failed("updating %s: Could not connect to %s.", $h, $config{$h}{'server'});
|
failed("updating %s: Could not connect to %s.", $h, $config{$h}{'server'});
|
||||||
next;
|
next;
|
||||||
|
|
Loading…
Reference in a new issue