easydns: Fix incorrect status value on success
This commit is contained in:
parent
a7feb95091
commit
3c68abe551
2 changed files with 7 additions and 1 deletions
|
@ -129,6 +129,8 @@ repository history](https://github.com/ddclient/ddclient/commits/master).
|
|||
[#713](https://github.com/ddclient/ddclient/pull/713)
|
||||
* `easydns`: Fixed parsing of result code from server response.
|
||||
[#713](https://github.com/ddclient/ddclient/pull/713)
|
||||
* `easydns`: Fixed successful updates treated as failed updates.
|
||||
[#713](https://github.com/ddclient/ddclient/pull/713)
|
||||
|
||||
## 2023-11-23 v3.11.2
|
||||
|
||||
|
|
|
@ -4824,8 +4824,12 @@ sub nic_easydns_update {
|
|||
};
|
||||
my $resultcode_re = join('|', map({quotemeta} 'NOERROR', keys(%errors)));
|
||||
my ($status) = $body =~ qr/\b($resultcode_re)\b/;
|
||||
# 'good' is the only status value that ddclient considers to be successful. All other
|
||||
# values are considered to be failures and will result in frequent retries (every
|
||||
# min-error-interval, which defaults to 5m).
|
||||
$status = 'good' if ($status // '') =~ qr/^NOERROR|OK$/;
|
||||
$config{$h}{"status-ipv$ipv"} = $status;
|
||||
if (($status // '') !~ qr/^NOERROR|OK$/) {
|
||||
if ($status ne 'good') {
|
||||
if (exists $errors{$status}) {
|
||||
failed("$h: $status: $errors{$status}");
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue