Set forceRelay to unset by default (#1184)

Setting it to `DISABLED` could cause clients to override user preference to use relay.
This commit is contained in:
David Zhao
2022-11-22 10:07:56 -08:00
committed by GitHub
parent 11da6fc0ff
commit b118ba917c
+2 -1
View File
@@ -1049,7 +1049,8 @@ func (p *ParticipantImpl) setupTransportManager() error {
if iceConfig.PreferSub == types.PreferTls {
p.params.ClientConf.ForceRelay = livekit.ClientConfigSetting_ENABLED
} else {
p.params.ClientConf.ForceRelay = livekit.ClientConfigSetting_DISABLED
// UNSET indicates that clients could override RTCConfiguration to forceRelay
p.params.ClientConf.ForceRelay = livekit.ClientConfigSetting_UNSET
}
p.lock.Unlock()