443 for TLS (#956)

* Use 443 for TURN TLS

* Explicit disable when TLS is not set
This commit is contained in:
Raja Subramanian
2022-08-25 09:05:44 +05:30
committed by GitHub
parent 06a46d5de0
commit 781bd74098
2 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -595,7 +595,7 @@ func (r *RoomManager) iceServersForRoom(ri *livekit.Room, tlsOnly bool) []*livek
urls = append(urls, fmt.Sprintf("turn:%s:%d?transport=udp", r.config.RTC.NodeIP, r.config.TURN.UDPPort))
}
if r.config.TURN.TLSPort > 0 {
urls = append(urls, fmt.Sprintf("turns:%s:%d?transport=tcp", r.config.TURN.Domain, r.config.TURN.TLSPort))
urls = append(urls, fmt.Sprintf("turns:%s:443?transport=tcp", r.config.TURN.Domain))
}
if len(urls) > 0 {
iceServers = append(iceServers, &livekit.ICEServer{