We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2af8741 commit bb6d16cCopy full SHA for bb6d16c
httprate.go
@@ -137,8 +137,7 @@ func composedKeyFunc(keyFuncs ...KeyFunc) KeyFunc {
137
}
138
139
// canonicalizeIP returns a form of ip suitable for comparison to other IPs.
140
-// For IPv4 addresses, this is simply the whole string.
141
-// For IPv6 addresses, this is the /64 prefix.
+// For IPv4 and IPv6 addresses, this is simply the whole string.
142
func canonicalizeIP(ip string) string {
143
isIPv6 := false
144
// This is how net.ParseIP decides if an address is IPv6
0 commit comments