File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ func (g *ICEGatherer) createAgent() error {
121
121
TCPMux : g .api .settingEngine .iceTCPMux ,
122
122
UDPMux : g .api .settingEngine .iceUDPMux ,
123
123
ProxyDialer : g .api .settingEngine .iceProxyDialer ,
124
+ DisableActiveTCP : g .api .settingEngine .iceDisableActiveTCP ,
124
125
}
125
126
126
127
requestedNetworkTypes := g .api .settingEngine .candidates .ICENetworkTypes
Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ type SettingEngine struct {
86
86
iceTCPMux ice.TCPMux
87
87
iceUDPMux ice.UDPMux
88
88
iceProxyDialer proxy.Dialer
89
+ iceDisableActiveTCP bool
89
90
disableMediaEngineCopy bool
90
91
srtpProtectionProfiles []dtls.SRTPProtectionProfile
91
92
receiveMTU uint
@@ -348,6 +349,11 @@ func (e *SettingEngine) SetICEProxyDialer(d proxy.Dialer) {
348
349
e .iceProxyDialer = d
349
350
}
350
351
352
+ // DisableActiveTCP disables using active TCP for ICE. Active TCP is enabled by default
353
+ func (e * SettingEngine ) DisableActiveTCP (isDisabled bool ) {
354
+ e .iceDisableActiveTCP = isDisabled
355
+ }
356
+
351
357
// DisableMediaEngineCopy stops the MediaEngine from being copied. This allows a user to modify
352
358
// the MediaEngine after the PeerConnection has been constructed. This is useful if you wish to
353
359
// modify codecs after signaling. Make sure not to share MediaEngines between PeerConnections.
You can’t perform that action at this time.
0 commit comments