From f65aa3d8e3a6266ccf3363e8a2c440a7f76213be Mon Sep 17 00:00:00 2001 From: Lee Briggs Date: Tue, 27 May 2025 08:24:16 -0700 Subject: [PATCH] Change name of interface exclude mechanism Updates #1552 Signed-off-by: Lee Briggs --- net/netmon/state.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/net/netmon/state.go b/net/netmon/state.go index 5b4c404cd..0ea090cb4 100644 --- a/net/netmon/state.go +++ b/net/netmon/state.go @@ -27,8 +27,9 @@ import ( // same interface and subnet. var forceAllIPv6Endpoints = envknob.RegisterBool("TS_DEBUG_FORCE_ALL_IPV6_ENDPOINTS") -// set a debug knob to exclude interfaces from the list of interfaces -var excludedInterfaces = envknob.RegisterString("TS_DEBUG_EXCLUDED_INTERFACES") +// suppressInterfaces is a debug knob containing a list of interface names that should not be advertised as endpoints. +// 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 // which HTTP proxy the system should use. @@ -54,7 +55,7 @@ func isExcludedInterface(nif *net.Interface) bool { return false } - remain := excludedInterfaces() + remain := excludeInterfaces() for remain != "" { var candidate string candidate, remain, _ = strings.Cut(remain, ",")