Skip to content

Commit fb6cf54

Browse files
Update a comment
1 parent 9037ea3 commit fb6cf54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: sonyflake.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ func privateIPv4(interfaceAddrs types.InterfaceAddrs) (net.IP, error) {
178178
}
179179

180180
func isPrivateIPv4(ip net.IP) bool {
181-
// Allow private IP subnets (RFC1918) or link local (RFC3927)
181+
// Allow private IP addresses (RFC1918) and link-local addresses (RFC3927)
182182
return ip != nil &&
183183
(ip[0] == 10 || ip[0] == 172 && (ip[1] >= 16 && ip[1] < 32) || ip[0] == 192 && ip[1] == 168 || ip[0] == 169 && ip[1] == 254)
184184
}

0 commit comments

Comments
 (0)