ignore udp turn when force tls
@@ -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))
