1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-27 22:36:12 -04:00

Drain Connection Based on uuid based behavior seed(skip auth info drain for now)

This commit is contained in:
Shelikhoo 2020-06-02 15:16:17 +08:00
parent d671780804
commit ca032dd00f
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316

View File

@ -152,8 +152,7 @@ func (s *ServerSession) DecodeRequestHeader(reader io.Reader) (*protocol.Request
user, timestamp, valid := s.userValidator.Get(buffer.Bytes())
if !valid {
//It is possible that we are under attack described in https://github.com/v2ray/v2ray-core/issues/2523
return nil, drainConnection(newError("invalid user"))
return nil, newError("invalid user")
}
iv := hashTimestamp(md5.New(), timestamp)