Refactored connection handling to avoid race conditions

This commit is contained in:
euzu
2025-11-26 14:13:31 +01:00
parent 6c021fbe2b
commit 21006dbf0f
8 changed files with 36 additions and 17 deletions
+1 -1
View File
@@ -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;
}