macos build, linux tun hack

This commit is contained in:
kulikov0 committed 2026-05-11 20:15:56 +02:00
1 parent 9639defdd4
commit 76ab72db2e
18 files changed
+719 -64

No files matched your search

+16 -1
View File
@@ -1,6 +1,21 @@
package joiner
import "strings"
import (
"strings"
"github.com/pion/logging"
)
// QuietPionLoggerFactory returns a Pion LoggerFactory that silences the
// "turnc" scope. Pion's TURN client logs CreatePermission refresh
// failures at Error level every few minutes during a normal call when
// the SFU advertises peer addresses the TURN server rejects on
// refresh (often IPv6). The call itself is unaffected.
func QuietPionLoggerFactory() *logging.DefaultLoggerFactory {
factory := logging.NewDefaultLoggerFactory()
factory.ScopeLevels["turnc"] = logging.LogLevelDisabled
return factory
}
func TmParseMids(sdp string) (audioMid, videoMid string) {
var media string