mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-11 00:22:05 +00:00
ipn/ipnlocal: don't try to block localhost traffic when using exit nodes
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
(cherry picked from commit ddf3394b40)
This commit is contained in:
committed by
Maisem Ali
parent
766a3a2e59
commit
66ad35c04e
@@ -1029,6 +1029,10 @@ func internalAndExternalInterfaces() (internal, external []netaddr.IPPrefix, err
|
|||||||
if pfx.IsSingleIP() {
|
if pfx.IsSingleIP() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if iface.IsLoopback() {
|
||||||
|
internal = append(internal, pfx)
|
||||||
|
return
|
||||||
|
}
|
||||||
if runtime.GOOS == "windows" {
|
if runtime.GOOS == "windows" {
|
||||||
// Windows Hyper-V prefixes all MAC addresses with 00:15:5d.
|
// 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
|
// https://docs.microsoft.com/en-us/troubleshoot/windows-server/virtualization/default-limit-256-dynamic-mac-addresses
|
||||||
|
|||||||
Reference in New Issue
Block a user