Skip to content

Commit

Permalink
update_nics: Always overwrite status-ipv* with value from status
Browse files Browse the repository at this point in the history
  • Loading branch information
rhansen committed Sep 2, 2024
1 parent 94ce636 commit 499318f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ddclient.in
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 499318f

Please sign in to comment.