Update buffer usage

This commit is contained in:
世界 2022-07-26 11:16:21 +08:00
parent 45a2ad9cd4
commit ebbaadcae0
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
5 changed files with 6 additions and 6 deletions

View file

@ -121,7 +121,7 @@ type nonePacketConn struct {
}
func (c *nonePacketConn) ReadPacket(buffer *buf.Buffer) (M.Socksaddr, error) {
_, err := buffer.ReadFrom(c)
_, err := buffer.ReadOnceFrom(c)
if err != nil {
return M.Socksaddr{}, err
}