mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-28 08:13:11 +00:00
portlist: filter out all of 127.0.0.0/8, not just 127.0.0.1/32
Per user private bug report. Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
@@ -42,8 +42,7 @@ func parsePort(s string) int {
|
||||
}
|
||||
|
||||
func isLoopbackAddr(s string) bool {
|
||||
return strings.HasPrefix(s, "127.0.0.1:") ||
|
||||
strings.HasPrefix(s, "127.0.0.1.") ||
|
||||
return strings.HasPrefix(s, "127.") ||
|
||||
strings.HasPrefix(s, "[::1]:") ||
|
||||
strings.HasPrefix(s, "::1.")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user