MCPcopy
hub / github.com/tailscale/tailscale / init

Function init

wgengine/netstack/netstack.go:145–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

143)
144
145func init() {
146 mode := envknob.String("TS_DEBUG_NETSTACK_LEAK_MODE")
147 if mode == "" {
148 return
149 }
150 var lm refs.LeakMode
151 if err := lm.Set(mode); err != nil {
152 panic(err)
153 }
154 refs.SetLeakMode(lm)
155}
156
157// Impl contains the state for the netstack implementation,
158// and implements wgengine.FakeImpl to act as a userspace network

Callers

nothing calls this directly

Calls 6

StringFunction · 0.92
NewCounterFuncFunction · 0.92
StatsMethod · 0.80
SetMethod · 0.65
KeysMethod · 0.65
ValueMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…