infomaniak: Fix mtime update

`mtime` should always be updated whenever the IP address is updated,
otherwise ddclient will keep force updating over and over.
This commit is contained in:
Richard Hansen 2024-06-21 00:04:50 -04:00
parent 61577d29ae
commit 0cde2e3f96
2 changed files with 3 additions and 1 deletions

View file

@ -81,6 +81,8 @@ repository history](https://github.com/ddclient/ddclient/commits/master).
[#670](https://github.com/ddclient/ddclient/pull/670)
* Fixed DNSExit provider when configured with a zone and non-identical
hostname. [#673](https://github.com/ddclient/ddclient/issues/673)
* `infomaniak`: Fixed frequent forced updates after 25 days (`max-interval`).
[#691](https://github.com/ddclient/ddclient/issues/691)
## 2023-11-23 v3.11.2

View file

@ -8042,7 +8042,7 @@ sub nic_infomaniak_update {
if (defined $updated && $updated) {
info($msg);
$config{$h}{"ipv$v"} = $ip;
$config{$h}{'mtime'} = $config{$h}{'mtime'} // $now;
$config{$h}{'mtime'} = $now;
$config{$h}{"status-ipv$v"} = 'good';
next INFOMANIAK_IP_LOOP;
}