From 98aec8ab30b29ad15f1b740bd3a615a772c6367c Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Mon, 26 Oct 2026 22:06:33 -0500 Subject: fix log --- src/slskd/Application.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/slskd/Application.cs') diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs index e055fcd8..982a828d 100644 --- a/src/slskd/Application.cs +++ b/src/slskd/Application.cs @@ -1439,7 +1439,7 @@ namespace slskd { if (Users.IsBlacklisted(username, endpoint.Address)) { - Log.Information("Returned empty directory listing for blacklisted user {Username} ({IP})", username, endpoint.Address); + Log.Information("Returned no place in queue for blacklisted user {Username} ({IP})", username, endpoint.Address); return Task.FromResult(null); } -- cgit v1.2.3 From 9f2487f7767931ece68621830ee76441eed9a57c Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Mon, 26 Oct 2026 22:07:19 -0500 Subject: apply regex options when patching --- src/slskd/Application.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/slskd/Application.cs') diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs index 982a828d..69676406 100644 --- a/src/slskd/Application.cs +++ b/src/slskd/Application.cs @@ -1565,8 +1565,15 @@ namespace slskd if (PreviousOptions.Filters.Search.Request.Except(newOptions.Filters.Search.Request).Any() || newOptions.Filters.Search.Request.Except(PreviousOptions.Filters.Search.Request).Any()) { + var regexOptions = RegexOptions.Compiled; + + if (!Flags.CaseSensitiveRegEx) + { + regexOptions |= RegexOptions.IgnoreCase; + } + CompiledSearchRequestFilters = newOptions.Filters.Search.Request - .Select(f => new Regex(f, RegexOptions.Compiled)) + .Select(f => new Regex(f, regexOptions)) .ToList() .AsReadOnly(); -- cgit v1.2.3 From 20951bf6fded64b82211aeb03aa26a72151585bd Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Mon, 26 Oct 2026 22:07:52 -0500 Subject: coalesece some things --- src/slskd/Application.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/slskd/Application.cs') diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs index 69676406..075495a7 100644 --- a/src/slskd/Application.cs +++ b/src/slskd/Application.cs @@ -741,7 +741,7 @@ namespace slskd } bool IsNull(Options.TransfersOptions.LimitsOptions.Limits lim, Options.TransfersOptions.LimitsOptions.Limits global) - => (lim is null && global is null) || ((lim?.Files ?? global?.Files ?? lim?.Megabytes ?? global?.Megabytes ?? lim.Failures ?? global.Failures) is null); + => (lim is null && global is null) || ((lim?.Files ?? global?.Files ?? lim?.Megabytes ?? global?.Megabytes ?? lim?.Failures ?? global?.Failures) is null); /* * we have limits set, so now we have to fetch the data and compare to see if any would be hit if we allow this transfer to be enqueued. -- cgit v1.2.3 From 901f05d95785df8f2eb240988a5ec5ad99cb5c86 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Wed, 28 Oct 2026 18:49:45 -0500 Subject: retain signal registrations to avoid deregistration --- src/slskd/Application.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/slskd/Application.cs') diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs index 075495a7..461a5fef 100644 --- a/src/slskd/Application.cs +++ b/src/slskd/Application.cs @@ -134,13 +134,13 @@ namespace slskd foreach (var signal in new[] { PosixSignal.SIGINT, PosixSignal.SIGQUIT, PosixSignal.SIGTERM }) { - PosixSignalRegistration.Create(signal, context => + PosixSignals.Add(PosixSignalRegistration.Create(signal, context => { ShuttingDown = true; Program.MasterCancellationTokenSource.Cancel(); Log.Fatal("Received {Signal}", signal); Environment.Exit(1); - }); + })); } OptionsAtStartup = optionsAtStartup; @@ -237,6 +237,7 @@ namespace slskd public static bool IsShuttingDown => Environment.HasShutdownStarted || ShuttingDown; private static bool ShuttingDown { get; set; } = false; + private static List PosixSignals { get; } = []; private ISoulseekClient Client { get; set; } private FileService Files { get; } -- cgit v1.2.3