From c6f3bcb5da8d9a075789b1136cf46bb1ad86835d Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Wed, 22 Apr 2026 18:48:42 -0500 Subject: use only cached blacklist status pre-search --- src/slskd/Application.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3