From 5e61dfbe9c10a49dd8275c06b8ad12c49f78b07c Mon Sep 17 00:00:00 2001 From: Carson Ip Date: Wed, 17 Jul 2024 15:16:17 +0100 Subject: [PATCH] Update comment --- model/modelpb/ip.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/modelpb/ip.go b/model/modelpb/ip.go index 4d2ea66f..6dd65099 100644 --- a/model/modelpb/ip.go +++ b/model/modelpb/ip.go @@ -54,7 +54,7 @@ func Addr2IP(addr netip.Addr) *IP { return ip } -// IP2Addr converts a valid IP to netip.Addr. +// IP2Addr converts a nil IP to a zero netip.Addr and a valid IP to a valid netip.Addr. func IP2Addr(i *IP) netip.Addr { if i == nil { return netip.Addr{}