1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-03 15:55:20 -05:00

Reserve sign bit

This commit is contained in:
Shelikhoo
2020-06-08 10:23:59 +08:00
parent 78d7b4f183
commit a58b20b5b8

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
}