diff options
| author | JP Dillingham <jp@dillingham.me> | 2023-10-21 20:06:31 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2023-10-21 20:06:31 -0500 |
| commit | a7012184f27c511e49ee677be4513b6b7c586c62 (patch) | |
| tree | dffac8ec2a1550f159d32b196056b0ca7fc419be /src | |
| parent | 89528aa6447ec4889c103a1ce26f650e35d4781c (diff) | |
| download | slskd-a7012184f27c511e49ee677be4513b6b7c586c62.tar.gz | |
log when preventing blacklisted action
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Application.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs index fc9f71c6..aca75418 100644 --- a/src/slskd/Application.cs +++ b/src/slskd/Application.cs @@ -460,6 +460,7 @@ namespace slskd { if (IsBlacklisted(username, endpoint.Address)) { + Log.Information("Rejected enqueue request for blacklisted user {Username} ({IP})", username, endpoint.Address); return Task.FromException(new DownloadEnqueueException($"File not shared.")); } @@ -478,6 +479,7 @@ namespace slskd if (IsBlacklisted(username, endpoint.Address)) { + Log.Information("Returned empty browse listing for blacklisted user {Username} ({IP})", username, endpoint.Address); return new BrowseResponse(); } @@ -902,6 +904,7 @@ namespace slskd { if (IsBlacklisted(username, endpoint.Address)) { + Log.Information("Returned empty directory listing for blacklisted user {Username} ({IP})", username, endpoint.Address); return new Soulseek.Directory(directory); } @@ -1097,6 +1100,7 @@ namespace slskd if (IsBlacklisted(username)) { + Log.Information("Returned empty search response for blacklisted user {Username}", username); return new SearchResponse(username, token, hasFreeUploadSlot: false, uploadSpeed: 0, queueLength: int.MaxValue, fileList: Enumerable.Empty<Soulseek.File>()); } |
