ForceTCP only for supported clients (#997)

* ForceTCP only for supported clients

Revert back to standard if forceRelay with TLS fails
Don't force TLS unless it's configured

* fix lint
This commit is contained in:
David Zhao
2022-09-09 18:14:36 -07:00
committed by GitHub
parent 47faedc27a
commit 7e3155dcd6
7 changed files with 150 additions and 21 deletions
+2
View File
@@ -84,6 +84,7 @@ type ParticipantParams struct {
Migration bool
AdaptiveStream bool
AllowTCPFallback bool
TURNSEnabled bool
}
type ParticipantImpl struct {
@@ -1107,6 +1108,7 @@ func (p *ParticipantImpl) setupTransportManager() error {
ClientInfo: p.params.ClientInfo,
Migration: p.params.Migration,
AllowTCPFallback: p.params.AllowTCPFallback,
TURNSEnabled: p.params.TURNSEnabled,
Logger: p.params.Logger,
})
if err != nil {