1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-21 17:46:58 -05:00

Reserve sign bit

This commit is contained in:
Shelikhoo 2020-06-08 10:23:59 +08:00
parent 78d7b4f183
commit a58b20b5b8
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316

View File

@ -96,7 +96,11 @@ func (a *AuthIDDecoderHolder) Match(AuthID [16]byte) (interface{}, error) {
continue
}
if math.Abs(float64(t-time.Now().Unix())) > 120 {
if t < 0 {
continue
}
if math.Abs(math.Abs(float64(t))-float64(time.Now().Unix())) > 120 {
continue
}