mirror of
https://github.com/livekit/livekit.git
synced 2026-06-07 11:01:58 +00:00
ignore udp turn when force tls (#952)
This commit is contained in:
@@ -589,7 +589,7 @@ func (r *RoomManager) iceServersForRoom(ri *livekit.Room, tlsOnly bool) []*livek
|
||||
hasSTUN := false
|
||||
if r.config.TURN.Enabled {
|
||||
var urls []string
|
||||
if r.config.TURN.UDPPort > 0 {
|
||||
if r.config.TURN.UDPPort > 0 && !tlsOnly {
|
||||
// UDP TURN is used as STUN
|
||||
hasSTUN = true
|
||||
urls = append(urls, fmt.Sprintf("turn:%s:%d?transport=udp", r.config.RTC.NodeIP, r.config.TURN.UDPPort))
|
||||
|
||||
Reference in New Issue
Block a user