MCPcopy Index your code
hub / github.com/coder/coder / init

Function init

coderd/tailnet.go:39–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37var tailnetTransport *http.Transport
38
39func init() {
40 tp, valid := http.DefaultTransport.(*http.Transport)
41 if !valid {
42 panic("dev error: default transport is the wrong type")
43 }
44 tailnetTransport = tp.Clone()
45 // We do not want to respect the proxy settings from the environment, since
46 // all network traffic happens over wireguard.
47 tailnetTransport.Proxy = nil
48}
49
50var _ workspaceapps.AgentProvider = (*ServerTailnet)(nil)
51

Callers

nothing calls this directly

Calls 1

CloneMethod · 0.45

Tested by

no test coverage detected