Disable active TCP candidates.
Active TCP candidates were added in Pion 3.2.11.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user