mirror of
https://github.com/bitwarden/server
synced 2026-03-01 02:41:33 +00:00
inline out
This commit is contained in:
@@ -52,8 +52,7 @@ namespace Bit.Api.Middleware
|
||||
base.LogBlockedRequest(httpContext, identity, counter, rule);
|
||||
var key = $"blockedIp_{identity.ClientIp}";
|
||||
|
||||
int blockedCount;
|
||||
_memoryCache.TryGetValue(key, out blockedCount);
|
||||
_memoryCache.TryGetValue(key, out int blockedCount);
|
||||
|
||||
blockedCount++;
|
||||
if(blockedCount > 10)
|
||||
|
||||
Reference in New Issue
Block a user