mirror of
https://github.com/SinTan1729/chhoto-url
synced 2024-12-25 23:28:37 -06:00
Removed some debug code
This commit is contained in:
parent
66868effba
commit
b779019716
2 changed files with 1 additions and 2 deletions
|
@ -27,7 +27,6 @@ fn check(token: Option<String>) -> bool {
|
|||
.duration_since(SystemTime::UNIX_EPOCH)
|
||||
.expect("Time went backwards!")
|
||||
.as_secs();
|
||||
println!("{:#?}", token_parts);
|
||||
if token_text == "valid-session-token" && time_now < token_time + 1209600 {
|
||||
// There are 1209600 seconds in 14 days
|
||||
true
|
||||
|
|
|
@ -130,7 +130,7 @@ async fn main() -> std::io::Result<()> {
|
|||
.service(login)
|
||||
.default_service(Files::new("/", "./resources/").index_file("index.html"))
|
||||
})
|
||||
.bind(("0.0.0.0", 2000))?
|
||||
.bind(("0.0.0.0", 4567))?
|
||||
.run()
|
||||
.await
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue