aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Users/IUserService.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-04-23 18:40:41 -0500
committerGitHub <noreply@github.com>2026-04-23 18:40:41 -0500
commitfc722e4a78aa5369fcd5ca0d8e88bd98d874a1d8 (patch)
tree1ebad506bc42f3bc20e6825bf9f03715031c06ba /src/slskd/Users/IUserService.cs
parent7961741f740abd240754ff6e39cda6d69f727268 (diff)
parent2f20ac833dca19e87e7980ac83f94206685409d9 (diff)
downloadslskd-fc722e4a78aa5369fcd5ca0d8e88bd98d874a1d8.tar.gz
Merge pull request #1713 from slskd/blacklist-regex
Allow blacklisting of username patterns
Diffstat (limited to 'src/slskd/Users/IUserService.cs')
-rw-r--r--src/slskd/Users/IUserService.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/slskd/Users/IUserService.cs b/src/slskd/Users/IUserService.cs
index f2cfa5f1..28bb6459 100644
--- a/src/slskd/Users/IUserService.cs
+++ b/src/slskd/Users/IUserService.cs
@@ -144,8 +144,9 @@ namespace slskd.Users
/// </summary>
/// <param name="username">The username to check.</param>
/// <param name="ipAddress">The IPAddress to check, if available.</param>
+ /// <param name="bypassCache">A value indicating whether to compute blacklisted status on a cache miss.</param>
/// <returns>A value indicating whether the specified user and/or IP are blacklisted.</returns>
- bool IsBlacklisted(string username, IPAddress ipAddress = null);
+ bool IsBlacklisted(string username, IPAddress ipAddress = null, bool bypassCache = true);
/// <summary>
/// Retrieves a value indicating whether the specified peer is privileged.