From 20439bc130ad0508c7e4803951159124e2d57558 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Sun, 25 Aug 2024 00:01:39 -0400 Subject: [PATCH] update_nics: Refine comment --- ddclient.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ddclient.in b/ddclient.in index f829684..f9b655e 100755 --- a/ddclient.in +++ b/ddclient.in @@ -1489,8 +1489,9 @@ sub update_nics { debug("unable to update 'ipv$ipv' to '$ip' " . "because it is already set to '$vip'") if $vip_option; } else { - # A previous update will have set "ipv$ipv" if !$vip_option, so it's safe to - # overwrite it here because $vip_option was checked above. + # A previous update would have moved `$config{$h}{'ip'}` to + # `$config{$h}{"ipv$ipv"}`, so it is OK to overwrite `$config{$h}{"ipv$ipv"}` + # if it is already set. debug("updating 'ipv$ipv' from '$vip' to '$ip'") if defined($vip) && $vip ne $ip; $config{$h}{"ipv$ipv"} = $ip;