mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 15:36:41 -05:00
drain replayed connection
This commit is contained in:
parent
34c13f3b27
commit
8f45736dd3
@ -182,7 +182,7 @@ func (s *ServerSession) DecodeRequestHeader(reader io.Reader) (*protocol.Request
|
|||||||
sid.key = s.requestBodyKey
|
sid.key = s.requestBodyKey
|
||||||
sid.nonce = s.requestBodyIV
|
sid.nonce = s.requestBodyIV
|
||||||
if !s.sessionHistory.addIfNotExits(sid) {
|
if !s.sessionHistory.addIfNotExits(sid) {
|
||||||
return nil, newError("duplicated session id, possibly under replay attack")
|
return nil, drainConnection(newError("duplicated session id, possibly under replay attack"))
|
||||||
}
|
}
|
||||||
|
|
||||||
s.responseHeader = buffer.Byte(33) // 1 byte
|
s.responseHeader = buffer.Byte(33) // 1 byte
|
||||||
|
Loading…
Reference in New Issue
Block a user