update_nics: Always overwrite status-ipv* with value from status

This commit is contained in:
Richard Hansen 2024-08-24 23:27:03 -04:00
parent 94ce6367ec
commit 499318fbe0

View file

@ -1489,9 +1489,8 @@ sub update_nics {
if (defined(my $vstatus = $config{$h}{"status-ipv$ipv"})) { if (defined(my $vstatus = $config{$h}{"status-ipv$ipv"})) {
warning("ddclient bug: legacy protocol set both 'status' (to '$status') " . warning("ddclient bug: legacy protocol set both 'status' (to '$status') " .
"and 'status-ipv$ipv' (to '$vstatus')"); "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 # TODO: See above comment for $ip_option. This is the same situation, but for
# 'ipv4' and 'ipv6'. # 'ipv4' and 'ipv6'.
my $vip_option = opt("usev$ipv", $h) eq "ipv$ipv"; my $vip_option = opt("usev$ipv", $h) eq "ipv$ipv";