diff --git a/src/main.rs b/src/main.rs index b5f62b2..daed748 100644 --- a/src/main.rs +++ b/src/main.rs @@ -290,7 +290,7 @@ async fn index(req: HttpRequest) -> Result> { 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()); } }