From 0cde2e3f96d51fda5def045c6f53aa7e442887fe Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Fri, 21 Jun 2024 00:04:50 -0400 Subject: [PATCH] infomaniak: Fix `mtime` update `mtime` should always be updated whenever the IP address is updated, otherwise ddclient will keep force updating over and over. --- ChangeLog.md | 2 ++ ddclient.in | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog.md b/ChangeLog.md index 6ac8d0c..6431684 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -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 diff --git a/ddclient.in b/ddclient.in index 7f20bdc..29fca39 100755 --- a/ddclient.in +++ b/ddclient.in @@ -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; }