mirror of
https://github.com/livekit/livekit.git
synced 2026-08-02 17:49:30 +00:00
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 {
|
||||
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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user