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

Method RewriteDERPMap

codersdk/agentsdk/agentsdk.go:165–167  ·  view source on GitHub ↗

RewriteDERPMap rewrites the DERP map to use the configured access URL of the agent 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

163// See tailnet.RewriteDERPMapDefaultRelay for more details on why this is
164// necessary.
165func (c *Client) RewriteDERPMap(derpMap *tailcfg.DERPMap) {
166 tailnet.RewriteDERPMapDefaultRelay(context.Background(), c.SDK.Logger(), derpMap, c.SDK.URL)
167}
168
169// ConnectRPC20 returns a dRPC client to the Agent API v2.0. Notably, it is missing
170// GetAnnouncementBanners, but is useful when you want to be maximally compatible with Coderd

Callers

nothing calls this directly

Calls 2

LoggerMethod · 0.45

Tested by

no test coverage detected