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:
@@ -1049,7 +1049,8 @@ func (p *ParticipantImpl) setupTransportManager() error {
|
|||||||
if iceConfig.PreferSub == types.PreferTls {
|
if iceConfig.PreferSub == types.PreferTls {
|
||||||
p.params.ClientConf.ForceRelay = livekit.ClientConfigSetting_ENABLED
|
p.params.ClientConf.ForceRelay = livekit.ClientConfigSetting_ENABLED
|
||||||
} else {
|
} 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()
|
p.lock.Unlock()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user