From b154d8ef98b48f93acdc83befb99003abd492b24 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Sat, 15 Jun 2024 20:46:48 -0400 Subject: [PATCH] Fix missing v4, v6 variants in recap update Fixes an oversight when IPv6 support was added. --- ddclient.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ddclient.in b/ddclient.in index 473d8e6..38481a3 100755 --- a/ddclient.in +++ b/ddclient.in @@ -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