Skip to content

Commit

Permalink
netutil: imp docs
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Oct 3, 2024
1 parent 0749626 commit c5ebb6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions netutil/ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c5ebb6a

Please sign in to comment.