ipn/ipnlocal: don't try to block localhost traffic when using exit nodes

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick 2021-10-14 13:09:06 -07:00 committed by Brad Fitzpatrick
parent 77696579f5
commit ddf3394b40

View File

@ -1029,6 +1029,10 @@ func internalAndExternalInterfaces() (internal, external []netaddr.IPPrefix, err
if pfx.IsSingleIP() {
return
}
if iface.IsLoopback() {
internal = append(internal, pfx)
return
}
if runtime.GOOS == "windows" {
// Windows Hyper-V prefixes all MAC addresses with 00:15:5d.
// https://docs.microsoft.com/en-us/troubleshoot/windows-server/virtualization/default-limit-256-dynamic-mac-addresses