443 for TLS (#956)

* Use 443 for TURN TLS

* Explicit disable when TLS is not set
This commit is contained in:
Raja Subramanian
2022-08-25 09:05:44 +05:30
committed by GitHub
parent 06a46d5de0
commit 781bd74098
2 changed files with 7 additions and 4 deletions
+6 -3
View File
@@ -1039,11 +1039,14 @@ func (p *ParticipantImpl) setupTransportManager() error {
tm.OnICEConfigChanged(func(iceConfig types.IceConfig) {
p.lock.Lock()
onICEConfigChanged := p.onICEConfigChanged
if p.params.ClientConf == nil {
p.params.ClientConf = &livekit.ClientConfiguration{}
}
if iceConfig.PreferSub == types.PreferTls {
if p.params.ClientConf == nil {
p.params.ClientConf = &livekit.ClientConfiguration{}
}
p.params.ClientConf.ForceRelay = livekit.ClientConfigSetting_ENABLED
} else {
p.params.ClientConf.ForceRelay = livekit.ClientConfigSetting_DISABLED
}
p.lock.Unlock()