mirror of
https://github.com/MetaCubeX/Clash.Meta.git
synced 2025-04-19 00:30:58 +00:00
fix: websocket data losing
This commit is contained in:
parent
ba3c44a169
commit
664b134015
1 changed files with 1 additions and 1 deletions
|
@ -467,7 +467,7 @@ func streamWebsocketConn(ctx context.Context, conn net.Conn, c *WebsocketConfig,
|
|||
}
|
||||
}
|
||||
|
||||
conn = newWebsocketConn(conn, ws.StateClientSide)
|
||||
conn = newWebsocketConn(bufferedConn, ws.StateClientSide)
|
||||
// websocketConn can't correct handle ReadDeadline
|
||||
// so call N.NewDeadlineConn to add a safe wrapper
|
||||
return N.NewDeadlineConn(conn), nil
|
||||
|
|
Loading…
Add table
Reference in a new issue