mirror of https://github.com/v2ray/v2ray-core
Drain Connection Based on uuid based behavior seed(skip auth info drain for now)
parent
d671780804
commit
ca032dd00f
|
@ -152,8 +152,7 @@ func (s *ServerSession) DecodeRequestHeader(reader io.Reader) (*protocol.Request
|
||||||
|
|
||||||
user, timestamp, valid := s.userValidator.Get(buffer.Bytes())
|
user, timestamp, valid := s.userValidator.Get(buffer.Bytes())
|
||||||
if !valid {
|
if !valid {
|
||||||
//It is possible that we are under attack described in https://github.com/v2ray/v2ray-core/issues/2523
|
return nil, newError("invalid user")
|
||||||
return nil, drainConnection(newError("invalid user"))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
iv := hashTimestamp(md5.New(), timestamp)
|
iv := hashTimestamp(md5.New(), timestamp)
|
||||||
|
|
Loading…
Reference in New Issue