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

Commit 188450b

Browse files
authored
fix: Drop port when creating TURN endpoint (#352)
1 parent 56ffab3 commit 188450b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

wsnet/conn.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ func TURNEndpoint(baseURL *url.URL) string {
1919
if baseURL.Scheme == httpScheme {
2020
turnScheme = "turn"
2121
}
22-
return fmt.Sprintf("%s:%s:5349?transport=tcp", turnScheme, baseURL.Host)
22+
23+
return fmt.Sprintf("%s:%s:5349?transport=tcp", turnScheme, baseURL.Hostname())
2324
}
2425

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

0 commit comments

Comments
 (0)