Some golang modernisation bits. (#4016)
Mainly doing this to check CI static check failures.
This commit is contained in:
@@ -1006,9 +1006,10 @@ func (r *RoomManager) iceServersForParticipant(apiKey string, participant types.
|
||||
for _, s := range r.config.RTC.TURNServers {
|
||||
scheme := "turn"
|
||||
transport := "tcp"
|
||||
if s.Protocol == "tls" {
|
||||
switch s.Protocol {
|
||||
case "tls":
|
||||
scheme = "turns"
|
||||
} else if s.Protocol == "udp" {
|
||||
case "udp":
|
||||
transport = "udp"
|
||||
}
|
||||
is := &livekit.ICEServer{
|
||||
|
||||
Reference in New Issue
Block a user