mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-01 05:54:01 +03:00
Add EventReplayAttack
This commit is contained in:
@@ -166,6 +166,10 @@ func (p *Proxy) doFakeTLSHandshake(ctx *streamContext) bool {
|
||||
|
||||
if p.antiReplayCache.SeenBefore(hello.SessionID) {
|
||||
p.logger.Warning("replay attack has been detected!")
|
||||
p.eventStream.Send(p.ctx, EventReplayAttack{
|
||||
CreatedAt: time.Now(),
|
||||
ConnID: ctx.connID,
|
||||
})
|
||||
p.doDomainFronting(ctx, rewind)
|
||||
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user