From c5ebb6abfc316d6c30e8f94c86b9724e9d44feeb Mon Sep 17 00:00:00 2001 From: Eugene Burkov Date: Thu, 3 Oct 2024 19:11:54 +0300 Subject: [PATCH] netutil: imp docs --- netutil/ip.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/netutil/ip.go b/netutil/ip.go index 000781b..778a002 100644 --- a/netutil/ip.go +++ b/netutil/ip.go @@ -138,6 +138,8 @@ func IsValidIPString(s string) (ok bool) { // maxSignificant is the maximum number of significant characters in a field // of an IPv6 address. There is no need to search for separator longer than // this number of bytes. + // + // See https://www.rfc-editor.org/rfc/rfc4291#section-2.2. const maxSignificant = 4 strLen := len(s)