feat(client): провайдер direct - прямо на сервер без TURN-реле
Тот же DTLS с обфускацией, сервер не меняется. По умолчанию один поток.
This commit is contained in:
1 parent
7df3a3fd91
commit
ee30afc922
17 files changed
+244
-102
No files matched your search
@@ -131,6 +131,9 @@ func assemble(r raw) (*Client, error) {
|
||||
n := r.N
|
||||
if n <= 0 {
|
||||
n = DefaultStreams
|
||||
if r.Provider == ProviderDirect {
|
||||
n = DefaultDirectStreams
|
||||
}
|
||||
}
|
||||
platform := Platform(r.Platform)
|
||||
if platform == "" {
|
||||
|
||||
Reference in new issue
Block a user