1
Fork 0

Disable active TCP candidates.

Active TCP candidates were added in Pion 3.2.11.
This commit is contained in:
Juliusz Chroboczek 2023-07-14 14:44:24 +02:00
parent 90ce111b44
commit 5722270cc7
1 changed files with 1 additions and 0 deletions

View File

@ -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)
}