mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
fix: ensure local derp uses the hostname (#6559)
This broke deployments that use a custom port with an access URL. We should write a test for this!
This commit is contained in:
+1
-1
@@ -621,7 +621,7 @@ flags, and YAML configuration. The precedence is as follows:
|
||||
Nodes: []*tailcfg.DERPNode{{
|
||||
Name: fmt.Sprintf("%db", cfg.DERP.Server.RegionID),
|
||||
RegionID: int(cfg.DERP.Server.RegionID.Value()),
|
||||
HostName: cfg.AccessURL.Host,
|
||||
HostName: cfg.AccessURL.Value().Hostname(),
|
||||
DERPPort: accessURLPort,
|
||||
STUNPort: -1,
|
||||
ForceHTTP: cfg.AccessURL.Scheme == "http",
|
||||
|
||||
Reference in New Issue
Block a user