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