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

Method derpMapLocked

tailnet/configmaps.go:338–340  ·  view source on GitHub ↗

derMapLocked returns the current DERPMap. c.L must be held

()

Source from the content-addressed store, hash-verified

336
337// derMapLocked returns the current DERPMap. c.L must be held
338func (c *configMaps) derpMapLocked() *tailcfg.DERPMap {
339 return c.derpMap.Clone()
340}
341
342// reconfig computes the correct wireguard config and calls the engine.Reconfig
343// with the config we have. It is not intended for this to be called outside of

Callers 2

configLoopMethod · 0.95
DERPMapMethod · 0.80

Calls 1

CloneMethod · 0.45

Tested by

no test coverage detected