mirror of
https://github.com/euzu/tuliprox.git
synced 2026-10-28 09:42:26 +01:00
Refactored connection handling to avoid race conditions
This commit is contained in:
@@ -72,7 +72,7 @@ impl ProxyUserCredentialsDto {
|
||||
}
|
||||
}
|
||||
if let Some(exp_date) = self.exp_date {
|
||||
let now = chrono::Local::now();
|
||||
let now = chrono::Utc::now();
|
||||
if (exp_date - now.timestamp()) < 0 {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user