mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
Clear failed tries on success
This commit is contained in:
@@ -859,7 +859,9 @@ namespace ArchiSteamFarm {
|
||||
|
||||
authorized = password == Program.GlobalConfig.IPCPassword;
|
||||
|
||||
if (!authorized) {
|
||||
if (authorized) {
|
||||
FailedAuthorizations.Remove(ipAddress, out _);
|
||||
} else {
|
||||
if (FailedAuthorizations.TryGetValue(ipAddress, out attempts)) {
|
||||
FailedAuthorizations[ipAddress] = ++attempts;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user