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)
| 163 | // See tailnet.RewriteDERPMapDefaultRelay for more details on why this is |
| 164 | // necessary. |
| 165 | func (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 |
nothing calls this directly
no test coverage detected