1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-23 12:25:16 +01:00

inline out

This commit is contained in:
Kyle Spearrin 2017-08-31 11:23:16 -04:00
parent 18b60e5350
commit 75b2991137

View File

@ -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)