mirror of
https://github.com/tailscale/tailscale.git
synced 2025-07-30 07:43:42 +00:00
Change name of interface exclude mechanism
Updates #1552 Signed-off-by: Lee Briggs <lee@leebriggs.co.uk>
This commit is contained in:
parent
1014beeb8d
commit
f65aa3d8e3
@ -27,8 +27,9 @@ import (
|
|||||||
// same interface and subnet.
|
// same interface and subnet.
|
||||||
var forceAllIPv6Endpoints = envknob.RegisterBool("TS_DEBUG_FORCE_ALL_IPV6_ENDPOINTS")
|
var forceAllIPv6Endpoints = envknob.RegisterBool("TS_DEBUG_FORCE_ALL_IPV6_ENDPOINTS")
|
||||||
|
|
||||||
// set a debug knob to exclude interfaces from the list of interfaces
|
// suppressInterfaces is a debug knob containing a list of interface names that should not be advertised as endpoints.
|
||||||
var excludedInterfaces = envknob.RegisterString("TS_DEBUG_EXCLUDED_INTERFACES")
|
// Traffic may still flow over these interfaces if system routing makes the decision to do so.
|
||||||
|
var excludeInterfaces = envknob.RegisterString("TS_DEBUG_EXCLUDE_INTERFACES")
|
||||||
|
|
||||||
// LoginEndpointForProxyDetermination is the URL used for testing
|
// LoginEndpointForProxyDetermination is the URL used for testing
|
||||||
// which HTTP proxy the system should use.
|
// which HTTP proxy the system should use.
|
||||||
@ -54,7 +55,7 @@ func isExcludedInterface(nif *net.Interface) bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
remain := excludedInterfaces()
|
remain := excludeInterfaces()
|
||||||
for remain != "" {
|
for remain != "" {
|
||||||
var candidate string
|
var candidate string
|
||||||
candidate, remain, _ = strings.Cut(remain, ",")
|
candidate, remain, _ = strings.Cut(remain, ",")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user