MCPcopy Create free account
hub / github.com/coder/coder / DERPMap

Method DERPMap

tailnet/conn.go:598–602  ·  view source on GitHub ↗

DERPMap returns the currently set DERP mapping.

()

Source from the content-addressed store, hash-verified

596
597// DERPMap returns the currently set DERP mapping.
598func (c *Conn) DERPMap() *tailcfg.DERPMap {
599 c.configMaps.L.Lock()
600 defer c.configMaps.L.Unlock()
601 return c.configMaps.derpMapLocked()
602}
603
604// AwaitReachable pings the provided IP continually until the
605// address is reachable. It's the callers responsibility to provide

Callers

nothing calls this directly

Implementers 1

fakeConnvpn/tunnel_internal_test.go

Calls 3

derpMapLockedMethod · 0.80
LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected