mirror of https://github.com/v2ray/v2ray-core
Check replay only for AEAD connection, and later
parent
9fc37646b6
commit
78d7b4f183
|
@ -96,13 +96,14 @@ func (a *AuthIDDecoderHolder) Match(AuthID [16]byte) (interface{}, error) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if math.Abs(float64(t-time.Now().Unix())) > 120 {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
if !a.apw.Check(AuthID[:]) {
|
if !a.apw.Check(AuthID[:]) {
|
||||||
return nil, ErrReplay
|
return nil, ErrReplay
|
||||||
}
|
}
|
||||||
|
|
||||||
if math.Abs(float64(t-time.Now().Unix())) > 120 {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
_ = r
|
_ = r
|
||||||
|
|
||||||
return v.ticket, nil
|
return v.ticket, nil
|
||||||
|
|
Loading…
Reference in New Issue