From 31d3d5e8b9a2563d1175d1fa7a3c92df5ed700d7 Mon Sep 17 00:00:00 2001 From: cnderrauber Date: Wed, 24 Aug 2022 23:15:48 +0800 Subject: [PATCH] ignore udp turn when force tls (#952) --- pkg/service/roommanager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/service/roommanager.go b/pkg/service/roommanager.go index da1861e6d..ccd75adeb 100644 --- a/pkg/service/roommanager.go +++ b/pkg/service/roommanager.go @@ -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))