cmd/tailscaled: make the outbound HTTP/SOCKS5 proxy modular

Updates #12614

Change-Id: Icba6f1c0838dce6ee13aa2dc662fb551813262e4
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2025-09-17 09:44:50 -07:00
committed by Brad Fitzpatrick
parent ecfdd86fc9
commit 5e698a81b6
9 changed files with 207 additions and 86 deletions
+13
View File
@@ -135,3 +135,16 @@ func TestOmitOAuthKey(t *testing.T) {
},
}.Check(t)
}
func TestOmitOutboundProxy(t *testing.T) {
deptest.DepChecker{
GOOS: "linux",
GOARCH: "amd64",
Tags: "ts_omit_outboundproxy,ts_include_cli",
OnDep: func(dep string) {
if strings.Contains(dep, "socks5") || strings.Contains(dep, "proxymux") {
t.Errorf("unexpected dep with ts_omit_outboundproxy: %q", dep)
}
},
}.Check(t)
}