mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: use client preferred URL for the default DERP (#18911)
The agentsdk currently does a remap of the DERP map to change the EmbeddedRelay node's URL to match the agent's access URL. This PR makes changes to the `workspacesdk` (used by clients like the CLI) and `vpn` (used by Coder Desktop) to match this behavior. This enables us the ability to try Coder clients in dogfood over a VPN without changing the global access URL.
This commit is contained in:
+1
-1
@@ -98,7 +98,7 @@ func NewServerTailnet(
|
||||
controller := tailnet.NewController(logger, dialer)
|
||||
// it's important to set the DERPRegionDialer above _before_ we set the DERP map so that if
|
||||
// there is an embedded relay, we use the local in-memory dialer.
|
||||
controller.DERPCtrl = tailnet.NewBasicDERPController(logger, conn)
|
||||
controller.DERPCtrl = tailnet.NewBasicDERPController(logger, nil, conn)
|
||||
coordCtrl := NewMultiAgentController(serverCtx, logger, tracer, conn)
|
||||
controller.CoordCtrl = coordCtrl
|
||||
// TODO: support controller.TelemetryCtrl
|
||||
|
||||
Reference in New Issue
Block a user