From 5722270cc73f8dc305260f1f5a81964b9e71b8c2 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Fri, 14 Jul 2023 14:44:24 +0200 Subject: [PATCH] Disable active TCP candidates. Active TCP candidates were added in Pion 3.2.11. --- group/group.go | 1 + 1 file changed, 1 insertion(+) diff --git a/group/group.go b/group/group.go index 4efe4ef..ff377c0 100644 --- a/group/group.go +++ b/group/group.go @@ -340,6 +340,7 @@ func codecsFromName(name string) ([]webrtc.RTPCodecParameters, error) { func APIFromCodecs(codecs []webrtc.RTPCodecParameters) (*webrtc.API, error) { s := webrtc.SettingEngine{} s.SetSRTPReplayProtectionWindow(512) + s.DisableActiveTCP(true) if !UseMDNS { s.SetICEMulticastDNSMode(ice.MulticastDNSModeDisabled) }