diff --git a/ChangeLog.md b/ChangeLog.md index 6043520..35aff37 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -138,6 +138,8 @@ repository history](https://github.com/ddclient/ddclient/commits/master). web-based IP discovery service (`--usev4=webv4`, `--usev6=webv6`) or from a router/firewall device. [#719](https://github.com/ddclient/ddclient/pull/719) + * `yandex`: Errors are now retried. + [#719](https://github.com/ddclient/ddclient/pull/719) ## 2023-11-23 v3.11.2 diff --git a/ddclient.in b/ddclient.in index 1c71d54..29cb85f 100755 --- a/ddclient.in +++ b/ddclient.in @@ -6298,13 +6298,12 @@ sub nic_yandex_update { $response = eval { decode_json($reply) }; if ($response->{success} eq 'error') { failed("%s", $response->{error}); - } else { - success("%s -- Updated Successfully to %s", $host, $ip); + next; } - $config{$host}{'ip'} = $ip; $config{$host}{'mtime'} = $now; $config{$host}{'status'} = 'good'; + success("%s -- Updated Successfully to %s", $host, $ip); } }