This commit is contained in:
bluepython508 committed 2026-02-19 10:07:43 +00:00
1 parent 007438e372
commit 6e637ecf77
1763 files changed
+60820 -279516

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
// Package useproxy registers support for using system proxies.
package useproxy
import (
"tailscale.com/feature"
"tailscale.com/net/tshttpproxy"
)
func init() {
feature.HookProxyFromEnvironment.Set(tshttpproxy.ProxyFromEnvironment)
feature.HookProxyInvalidateCache.Set(tshttpproxy.InvalidateCache)
feature.HookProxyGetAuthHeader.Set(tshttpproxy.GetAuthHeader)
feature.HookProxySetSelfProxy.Set(tshttpproxy.SetSelfProxy)
feature.HookProxySetTransportGetProxyConnectHeader.Set(tshttpproxy.SetTransportGetProxyConnectHeader)
}