mirror of
https://github.com/TeamPiped/piped-proxy.git
synced 2025-01-09 11:00:35 +05:30
fix: wrong comparaison with expire time
This commit is contained in:
parent
ec006b3999
commit
2562d701b0
@ -290,7 +290,7 @@ async fn index(req: HttpRequest) -> Result<HttpResponse, Box<dyn Error>> {
|
||||
let now = now.duration_since(UNIX_EPOCH)
|
||||
.expect("Time went backwards")
|
||||
.as_secs() as i64;
|
||||
if now < expiry {
|
||||
if now > expiry {
|
||||
return Err("Expire time in past".into());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user