aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Application.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs
index a8a7883a..b25713ef 100644
--- a/src/slskd/Application.cs
+++ b/src/slskd/Application.cs
@@ -1651,7 +1651,9 @@ namespace slskd
var sw = new Stopwatch();
sw.Start();
- if (Users.IsBlacklisted(username))
+ // opportunistically try and avoid performing the search if we have a cached blacklisted value, otherwise
+ // hold off on computing it and filling the cache until we have the user's IP
+ if (Users.IsBlacklisted(username, bypassCache: false))
{
return null;
}