From 499318fbe029691e8e6c9513774b0919ad4ff9aa Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Sat, 24 Aug 2024 23:27:03 -0400 Subject: [PATCH] update_nics: Always overwrite `status-ipv*` with value from `status` --- ddclient.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ddclient.in b/ddclient.in index 5c14788..9ce8077 100755 --- a/ddclient.in +++ b/ddclient.in @@ -1489,9 +1489,8 @@ sub update_nics { if (defined(my $vstatus = $config{$h}{"status-ipv$ipv"})) { warning("ddclient bug: legacy protocol set both 'status' (to '$status') " . "and 'status-ipv$ipv' (to '$vstatus')"); - } else { - $config{$h}{"status-ipv$ipv"} = $status; } + $config{$h}{"status-ipv$ipv"} = $status; # TODO: See above comment for $ip_option. This is the same situation, but for # 'ipv4' and 'ipv6'. my $vip_option = opt("usev$ipv", $h) eq "ipv$ipv";