1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-04-16 18:49:16 -04:00

fix reading udp packets

This commit is contained in:
Darien Raymond
2019-02-07 16:36:54 +01:00
parent 6e65007d16
commit 4f08b7c795
3 changed files with 9 additions and 4 deletions

View File

@@ -97,7 +97,7 @@ func (s *Server) handlerUDPPayload(ctx context.Context, conn internet.Connection
}
inbound.User = s.user
reader := buf.NewReader(conn)
reader := &buf.PacketReader{Reader: conn}
for {
mpayload, err := reader.ReadMultiBuffer()
if err != nil {