mirror of
https://github.com/hackdiaz-dev/free-turn-proxy.git
synced 2026-10-12 09:41:53 +02:00
fix(ios): прокидывать профиль обфускации в udprelay
udpParams заполнял только ObfKey, но не Profile/ObfTiming, как это делает CLI-клиент. Без профиля клиент обфусцировал трафик не так, как ждёт сервер (OBF_PROFILE=rtpopus): VK-аутентификация и TURN-аллокация проходили, но дальше Tx рос, Rx оставался 0 и стримы отваливались.
This commit is contained in:
@@ -214,7 +214,9 @@ func Start(link, peer, dns, listen, transport, obfKey string) error {
|
||||
Host: cfg.TURN.Host,
|
||||
Port: cfg.TURN.Port,
|
||||
TransportUDP: cfg.TURN.TransportUDP,
|
||||
Profile: string(cfg.Obf.Profile),
|
||||
ObfKey: cfg.Obf.Key,
|
||||
ObfTiming: cfg.Obf.Timing,
|
||||
GetCreds: udprelay.GetCredsFunc(func(ctx context.Context, streamID int) (string, string, []string, error) {
|
||||
c, err := prov.GetCredentials(ctx, streamID)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user