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

Method RewriteDERPMap

codersdk/workspacesdk/workspacesdk.go:201–203  ·  view source on GitHub ↗

RewriteDERPMap rewrites the DERP map to use the configured access URL of the client as the "embedded relay" access URL. See tailnet.RewriteDERPMapDefaultRelay for more details on why this is necessary.

(derpMap *tailcfg.DERPMap)

Source from the content-addressed store, hash-verified

199// See tailnet.RewriteDERPMapDefaultRelay for more details on why this is
200// necessary.
201func (c *Client) RewriteDERPMap(derpMap *tailcfg.DERPMap) {
202 tailnet.RewriteDERPMapDefaultRelay(context.Background(), c.client.Logger(), derpMap, c.client.URL)
203}
204
205func (c *Client) DialAgent(dialCtx context.Context, agentID uuid.UUID, options *DialAgentOptions) (agentConn AgentConn, err error) {
206 if options == nil {

Callers 1

DialAgentMethod · 0.95

Calls 2

LoggerMethod · 0.45

Tested by

no test coverage detected