1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-28 18:25:23 +00:00

fix tcp reading

This commit is contained in:
Darien Raymond 2016-11-13 21:05:40 +01:00
parent 9471b5b066
commit b49f76cd1c
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -29,7 +29,7 @@ func ReadTCPSession(user *protocol.User, reader io.Reader) (*protocol.RequestHea
}
account := rawAccount.(*ShadowsocksAccount)
buffer := alloc.NewLocalBuffer(256)
buffer := alloc.NewLocalBuffer(512)
defer buffer.Release()
ivLen := account.Cipher.IVSize()