mirror of
https://github.com/bitwarden/server.git
synced 2025-05-29 07:14:50 -05:00
inline out
This commit is contained in:
parent
18b60e5350
commit
75b2991137
@ -52,8 +52,7 @@ namespace Bit.Api.Middleware
|
|||||||
base.LogBlockedRequest(httpContext, identity, counter, rule);
|
base.LogBlockedRequest(httpContext, identity, counter, rule);
|
||||||
var key = $"blockedIp_{identity.ClientIp}";
|
var key = $"blockedIp_{identity.ClientIp}";
|
||||||
|
|
||||||
int blockedCount;
|
_memoryCache.TryGetValue(key, out int blockedCount);
|
||||||
_memoryCache.TryGetValue(key, out blockedCount);
|
|
||||||
|
|
||||||
blockedCount++;
|
blockedCount++;
|
||||||
if(blockedCount > 10)
|
if(blockedCount > 10)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user