1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-31 14:35:37 -05:00

VMess will Drain Connection On Auth failure

This commit is contained in:
Shelikhoo
2020-06-03 11:25:47 +08:00
parent 220b783caa
commit 38e89bd2c7
2 changed files with 5 additions and 2 deletions

View File

@@ -155,7 +155,7 @@ func (s *ServerSession) DecodeRequestHeader(reader io.Reader) (*protocol.Request
user, timestamp, valid := s.userValidator.Get(buffer.Bytes())
if !valid {
return nil, newError("invalid user")
return nil, drainConnection(newError("invalid user"))
}
iv := hashTimestamp(md5.New(), timestamp)