Fix missing v4, v6 variants in recap update

Fixes an oversight when IPv6 support was added.
This commit is contained in:
Richard Hansen 2024-06-15 20:46:48 -04:00
parent dafde8becb
commit b154d8ef98

View file

@ -1565,7 +1565,7 @@ sub write_recap {
$recap{$h}{$v} = $config{$h}{$v};
}
} else {
for my $v (qw(atime wtime status)) {
for my $v (qw(atime wtime status status-ipv4 status-ivp6)) {
$recap{$h}{$v} = $config{$h}{$v};
}
}
@ -1620,7 +1620,7 @@ sub read_recap {
for my $h (keys(%recap)) {
next if !exists($config->{$h});
for (qw(atime mtime wtime ip status)) {
for (qw(atime mtime wtime ip ipv4 ipv6 status status-ipv4 status-ipv6)) {
# TODO: Isn't $config equal to \%recap here? If so, this is a no-op. What was the
# original intention behind this? To copy %recap values into %config? If so, is
# it better to just delete this and live with the current behavior (which doesn't