mirror of
https://github.com/by-sonic/tglock.git
synced 2026-11-05 07:11:56 +03:00
Fix owned WebSocket split after transport boxing
This commit is contained in:
+1
-1
@@ -735,7 +735,7 @@ async fn ws_tunnel(
|
|||||||
stats.note_tunnel(dc, connected.route.kind.ui_code());
|
stats.note_tunnel(dc, connected.route.kind.ui_code());
|
||||||
|
|
||||||
let ws = match connection {
|
let ws = match connection {
|
||||||
crate::transport::TelegramConnection::WebSocket(ws) => ws,
|
crate::transport::TelegramConnection::WebSocket(ws) => *ws,
|
||||||
crate::transport::TelegramConnection::Tcp(remote) => {
|
crate::transport::TelegramConnection::Tcp(remote) => {
|
||||||
return cdn_tcp_tunnel(tcp, remote, init, crypto, stats, &connected, dc).await;
|
return cdn_tcp_tunnel(tcp, remote, init, crypto, stats, &connected, dc).await;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user