Make strict mode a param (#1054)

So, a wrapping config (like cloud) can skip the strict mode check.
This commit is contained in:
Raja Subramanian
2022-09-29 13:07:32 +05:30
committed by GitHub
parent c93df27329
commit 33f5dbc501
7 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -443,7 +443,7 @@ func newParticipantForTestWithOpts(identity livekit.ParticipantIdentity, opts *p
if opts.protocolVersion == 0 {
opts.protocolVersion = 6
}
conf, _ := config.NewConfig("", nil)
conf, _ := config.NewConfig("", true, nil)
// disable mux, it doesn't play too well with unit test
conf.RTC.UDPPort = 0
conf.RTC.TCPPort = 0