fallback to turn over tls when tcp short connection happen (#950)
* fallback to tls when tcp failed * go mod * magefile
This commit is contained in:
+2
-2
@@ -637,8 +637,8 @@ func (r *Room) SimulateScenario(participant types.LocalParticipant, simulateScen
|
||||
case *livekit.SimulateScenario_SwitchCandidateProtocol:
|
||||
r.Logger.Infow("simulating switch candidate protocol", "participant", participant.Identity())
|
||||
participant.ICERestart(&types.IceConfig{
|
||||
PreferSubTcp: scenario.SwitchCandidateProtocol == livekit.CandidateProtocol_TCP,
|
||||
PreferPubTcp: scenario.SwitchCandidateProtocol == livekit.CandidateProtocol_TCP,
|
||||
PreferSub: types.PreferCandidateType(scenario.SwitchCandidateProtocol),
|
||||
PreferPub: types.PreferCandidateType(scenario.SwitchCandidateProtocol),
|
||||
})
|
||||
}
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user