mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-07-27 04:14:14 +00:00
Chore: Three small fixes (#4922)
This commit is contained in:
parent
4433641e30
commit
4e826abebf
5 changed files with 16 additions and 3 deletions
|
@ -206,7 +206,10 @@ func (h *Handler) Process(ctx context.Context, network net.Network, connection s
|
|||
|
||||
first := buf.FromBytes(make([]byte, buf.Size))
|
||||
first.Clear()
|
||||
firstLen, _ := first.ReadFrom(connection)
|
||||
firstLen, errR := first.ReadFrom(connection)
|
||||
if errR != nil {
|
||||
return errR
|
||||
}
|
||||
errors.LogInfo(ctx, "firstLen = ", firstLen)
|
||||
|
||||
reader := &buf.BufferedReader{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue