Reserve sign bit

pull/2561/head
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
1 changed files with 5 additions and 1 deletions

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
}