Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: ensure local derp uses the hostname
This broke deployments that use a custom port with an access
URL. We should write a test for this!
  • Loading branch information
kylecarbs committed Mar 10, 2023
commit 455fa6ebc671ef9c57cb6f2515c61e4cc0148adb
2 changes: 1 addition & 1 deletion cli/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down