Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

fix: Drop port when creating TURN endpoint #352

Merged
merged 1 commit into from
May 17, 2021
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
3 changes: 2 additions & 1 deletion wsnet/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ func TURNEndpoint(baseURL *url.URL) string {
if baseURL.Scheme == httpScheme {
turnScheme = "turn"
}
return fmt.Sprintf("%s:%s:5349?transport=tcp", turnScheme, baseURL.Host)

return fmt.Sprintf("%s:%s:5349?transport=tcp", turnScheme, baseURL.Hostname())
}

// ListenEndpoint returns the Coder endpoint to listen for workspace connections.
Expand Down