Files
tailscale/feature/useproxy/useproxy.go

19 lines
617 B
Go
Raw Normal View History

// 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)
}