diff --git a/internal/provider/telemost/peer.go b/internal/provider/telemost/peer.go index 72a5820..0a2993b 100644 --- a/internal/provider/telemost/peer.go +++ b/internal/provider/telemost/peer.go @@ -698,12 +698,16 @@ func (p *Peer) applyServerHelloConfig(serverHello map[string]interface{}) { switch rawURLs := server["urls"].(type) { case []interface{}: for _, rawURL := range rawURLs { - if url, ok := rawURL.(string); ok && url != "" { + if url, ok := rawURL.(string); ok && url != "" && !strings.HasPrefix(url, "turn:") && !strings.HasPrefix(url, "turns:") { urls = append(urls, url) } } case []string: - urls = append(urls, rawURLs...) + for _, url := range rawURLs { + if !strings.HasPrefix(url, "turn:") && !strings.HasPrefix(url, "turns:") { + urls = append(urls, url) + } + } } if len(urls) == 0 {