domeneshop: Delete unnecessary comments
This commit is contained in:
parent
2534375cfd
commit
f0edd7f781
1 changed files with 0 additions and 4 deletions
|
@ -4316,8 +4316,6 @@ sub nic_domeneshop_update {
|
||||||
|
|
||||||
my $endpointPath = "/v0/dyndns/update";
|
my $endpointPath = "/v0/dyndns/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);
|
||||||
|
@ -4329,14 +4327,12 @@ sub nic_domeneshop_update {
|
||||||
password => $config{$h}{'password'},
|
password => $config{$h}{'password'},
|
||||||
);
|
);
|
||||||
|
|
||||||
# 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;
|
||||||
}
|
}
|
||||||
next if !header_ok($h, $reply);
|
next if !header_ok($h, $reply);
|
||||||
|
|
||||||
# evaluate response
|
|
||||||
my @reply = split /\n/, $reply;
|
my @reply = split /\n/, $reply;
|
||||||
my $status = shift(@reply);
|
my $status = shift(@reply);
|
||||||
my $message = pop(@reply);
|
my $message = pop(@reply);
|
||||||
|
|
Loading…
Reference in a new issue