From 4080dcc60fd006b2e5502a4f47f47869692f6b25 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Fri, 23 Oct 2026 08:03:04 -0500 Subject: remove controller-level admin for server --- src/slskd/Core/API/Controllers/ServerController.cs | 1 - 1 file changed, 1 deletion(-) (limited to 'src/slskd/Core') diff --git a/src/slskd/Core/API/Controllers/ServerController.cs b/src/slskd/Core/API/Controllers/ServerController.cs index 70adb858..41c1f1b1 100644 --- a/src/slskd/Core/API/Controllers/ServerController.cs +++ b/src/slskd/Core/API/Controllers/ServerController.cs @@ -48,7 +48,6 @@ namespace slskd.Core.API [ApiController] [Produces("application/json")] [Consumes("application/json")] - [Authorize(Roles = AuthRole.AdministratorOnly)] public class ServerController : ControllerBase { public ServerController( -- cgit v1.2.3 From 62cf077ec126089b2a6a1e0c3933167cec4003de Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Fri, 23 Oct 2026 09:23:52 -0500 Subject: delete dump file after transmission --- src/slskd/Core/API/Controllers/ApplicationController.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/slskd/Core') diff --git a/src/slskd/Core/API/Controllers/ApplicationController.cs b/src/slskd/Core/API/Controllers/ApplicationController.cs index c9af1296..fc2e31a7 100644 --- a/src/slskd/Core/API/Controllers/ApplicationController.cs +++ b/src/slskd/Core/API/Controllers/ApplicationController.cs @@ -36,6 +36,7 @@ namespace slskd.Core.API { using System; using System.Diagnostics; + using System.IO; using System.Threading.Tasks; using Asp.Versioning; using Microsoft.AspNetCore.Authorization; @@ -181,7 +182,9 @@ namespace slskd.Core.API Log.Warning("Dump complete"); - return PhysicalFile(file, "application/octet-stream", "slskd.dmp"); + // the dump contains everything in memory, including secrets. delete it once it has been sent + var stream = new FileStream(file, FileMode.Open, FileAccess.Read, FileShare.None, bufferSize: 4096, FileOptions.DeleteOnClose); + return File(stream, "application/octet-stream", "slskd.dmp"); } Log.Warning("Unauthorized attempt to dump application memory; Flags.Dumpable is disabled"); -- cgit v1.2.3 From 64ff7f587675b3fe04585339d33416a2d0373453 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Fri, 23 Oct 2026 10:46:20 -0500 Subject: allow a reader to get redacted options --- src/slskd/Core/API/Controllers/OptionsController.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/slskd/Core') diff --git a/src/slskd/Core/API/Controllers/OptionsController.cs b/src/slskd/Core/API/Controllers/OptionsController.cs index e20017a8..98028c76 100644 --- a/src/slskd/Core/API/Controllers/OptionsController.cs +++ b/src/slskd/Core/API/Controllers/OptionsController.cs @@ -53,7 +53,6 @@ namespace slskd.Core.API [ApiController] [Produces("application/json")] [Consumes("application/json")] - [Authorize(Roles = AuthRole.AdministratorOnly)] public class OptionsController : ControllerBase { public OptionsController( @@ -76,7 +75,7 @@ namespace slskd.Core.API /// /// [HttpGet] - [Authorize(Policy = AuthPolicy.Any, Roles = AuthRole.AdministratorOnly)] + [Authorize(Policy = AuthPolicy.Any)] [ProducesResponseType(typeof(Options), 200)] public IActionResult Current() { @@ -197,7 +196,7 @@ namespace slskd.Core.API if (!TryValidateYaml(yaml, out var error)) { - Log.Error(error, "Failed to validate YAML configuration"); + Log.Error("Failed to validate YAML configuration: {Error}", error); return BadRequest(error); } -- cgit v1.2.3 From bfd2e97b1a39c3a0b0337f2fe5bd9db167d00f3a Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Fri, 23 Oct 2026 14:45:34 -0500 Subject: improve login endpoint --- .../Core/API/Controllers/SessionController.cs | 27 +++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) (limited to 'src/slskd/Core') diff --git a/src/slskd/Core/API/Controllers/SessionController.cs b/src/slskd/Core/API/Controllers/SessionController.cs index b26dfe6e..1115f46c 100644 --- a/src/slskd/Core/API/Controllers/SessionController.cs +++ b/src/slskd/Core/API/Controllers/SessionController.cs @@ -34,8 +34,11 @@ using Microsoft.Extensions.Options; namespace slskd.Core.API { + using System.Security.Cryptography; + using System.Text; using Asp.Versioning; using Microsoft.AspNetCore.Authorization; + using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Serilog; using slskd.Authentication; @@ -115,13 +118,15 @@ namespace slskd.Core.API { if (OptionsAtStartup.Headless) { - Log.Warning("Login from {User} rejected; web UI is DISABLED when running in headless mode", login.Username); + // if running headless, reject all login attempts and provide no feedback about inputs; there is nothing + // a caller can do to change the outcome, so a 400 is misleading + Log.Warning("Login from {User} rejected; web UI is DISABLED when running in headless mode", login?.Username ?? ""); return Forbid(); } if (login == default) { - return BadRequest(); + return BadRequest("No credentials provided"); } if (string.IsNullOrWhiteSpace(login.Username) || string.IsNullOrWhiteSpace(login.Password)) @@ -129,8 +134,24 @@ namespace slskd.Core.API return BadRequest("Username and/or Password missing or invalid"); } + Options.WebOptions.WebAuthenticationOptions options = OptionsSnapshot.Value.Web.Authentication; + + if (string.IsNullOrEmpty(options.Username) || string.IsNullOrEmpty(options.Password)) + { + // validation within the Options class should prevent this, but confirm in case of regression + Log.Error("Authentication is misconfigured; when enabled, username and password must be at least one character. Login is disabled."); + return StatusCode(StatusCodes.Status500InternalServerError, "Login disabled, check application logs for details"); + } + + // compare in constant time to avoid timing attacks + static bool ParanoidEquals(string left, string right) + => CryptographicOperations.FixedTimeEquals(Encoding.UTF8.GetBytes(left), Encoding.UTF8.GetBytes(right)); + // only admin login for now - if (OptionsSnapshot.Value.Web.Authentication.Username == login.Username && OptionsSnapshot.Value.Web.Authentication.Password == login.Password) + var usernameMatches = ParanoidEquals(options.Username, login.Username); + var passwordMatches = ParanoidEquals(options.Password, login.Password); + + if (usernameMatches & passwordMatches) { return Ok(new TokenResponse(Security.GenerateJwt(login.Username, Role.Administrator))); } -- cgit v1.2.3 From d4447890e5fad1cd942affe051c9479385667465 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Fri, 23 Oct 2026 14:54:37 -0500 Subject: perms for more controllers, use paranoid check of api keys --- src/slskd/Core/Security/SecurityService.cs | 7 +++++-- src/slskd/Messaging/API/Controllers/RoomsController.cs | 10 +++++----- src/slskd/Shares/API/Controllers/SharesController.cs | 4 ++-- src/slskd/Transfers/API/Controllers/TransfersController.cs | 14 +++++++------- 4 files changed, 19 insertions(+), 16 deletions(-) (limited to 'src/slskd/Core') diff --git a/src/slskd/Core/Security/SecurityService.cs b/src/slskd/Core/Security/SecurityService.cs index 790f5806..26ed49d2 100644 --- a/src/slskd/Core/Security/SecurityService.cs +++ b/src/slskd/Core/Security/SecurityService.cs @@ -40,6 +40,8 @@ using System.IdentityModel.Tokens.Jwt; using System.Linq; using System.Net; using System.Security.Claims; +using System.Security.Cryptography; +using System.Text; using Microsoft.IdentityModel.Tokens; using NetTools; using Serilog; @@ -121,11 +123,12 @@ public class SecurityService keys = keys.Prepend(new KeyValuePair(nameof(PrimaryApiKey), PrimaryApiKey)); } - var record = keys.FirstOrDefault(k => k.Value.Key == key); + var keyBytes = Encoding.UTF8.GetBytes(key ?? string.Empty); + var record = keys.FirstOrDefault(k => k.Value.Key is not null && CryptographicOperations.FixedTimeEquals(Encoding.UTF8.GetBytes(k.Value.Key), keyBytes)); if (record.Key == null) { - throw new NotFoundException($"Unknown API key beginning with: {key.Substring(0, 4)}"); + throw new NotFoundException("Unknown API key"); } // looks like '::ffff:127.0.0.1'; not compatible with CIDR.Contains(), so convert it back to IPv4 diff --git a/src/slskd/Messaging/API/Controllers/RoomsController.cs b/src/slskd/Messaging/API/Controllers/RoomsController.cs index 3b2fe568..57d3b742 100644 --- a/src/slskd/Messaging/API/Controllers/RoomsController.cs +++ b/src/slskd/Messaging/API/Controllers/RoomsController.cs @@ -127,7 +127,7 @@ namespace slskd.Messaging.API /// The request completed successfully. /// The specified roomName could not be found. [HttpPost("joined/{roomName}/messages")] - [Authorize(Policy = AuthPolicy.Any)] + [Authorize(Policy = AuthPolicy.Any, Roles = AuthRole.ReadWriteOrAdministrator)] [ProducesResponseType(201)] [ProducesResponseType(404)] public async Task SendMessage([FromRoute, UrlEncoded] string roomName, [FromBody] string message) @@ -155,7 +155,7 @@ namespace slskd.Messaging.API /// The request completed successfully. /// The specified roomName could not be found. [HttpPost("joined/{roomName}/ticker")] - [Authorize(Policy = AuthPolicy.Any)] + [Authorize(Policy = AuthPolicy.Any, Roles = AuthRole.ReadWriteOrAdministrator)] [ProducesResponseType(201)] [ProducesResponseType(404)] public async Task SetTicker([FromRoute, UrlEncoded] string roomName, [FromBody] string message) @@ -183,7 +183,7 @@ namespace slskd.Messaging.API /// The request completed successfully. /// The specified roomName could not be found. [HttpPost("joined/{roomName}/members")] - [Authorize(Policy = AuthPolicy.Any)] + [Authorize(Policy = AuthPolicy.Any, Roles = AuthRole.ReadWriteOrAdministrator)] [ProducesResponseType(201)] [ProducesResponseType(404)] public async Task AddRoomMember([FromRoute, UrlEncoded] string roomName, [FromBody] string username) @@ -298,7 +298,7 @@ namespace slskd.Messaging.API /// The request completed successfully. /// The room has already been joined. [HttpPost("joined")] - [Authorize(Policy = AuthPolicy.Any)] + [Authorize(Policy = AuthPolicy.Any, Roles = AuthRole.ReadWriteOrAdministrator)] [ProducesResponseType(typeof(Room), 201)] [ProducesResponseType(304)] public async Task JoinRoom([FromBody] string roomName) @@ -339,7 +339,7 @@ namespace slskd.Messaging.API /// The request completed successfully. /// The room has not been joined. [HttpDelete("joined/{roomName}")] - [Authorize(Policy = AuthPolicy.Any)] + [Authorize(Policy = AuthPolicy.Any, Roles = AuthRole.ReadWriteOrAdministrator)] [ProducesResponseType(204)] [ProducesResponseType(404)] public async Task LeaveRoom([FromRoute, UrlEncoded] string roomName) diff --git a/src/slskd/Shares/API/Controllers/SharesController.cs b/src/slskd/Shares/API/Controllers/SharesController.cs index 76ec4643..64d703bd 100644 --- a/src/slskd/Shares/API/Controllers/SharesController.cs +++ b/src/slskd/Shares/API/Controllers/SharesController.cs @@ -148,7 +148,7 @@ namespace slskd.Shares.API /// A share scan is already in progress. [HttpPut] [Route("")] - [Authorize(Policy = AuthPolicy.Any)] + [Authorize(Policy = AuthPolicy.Any, Roles = AuthRole.ReadWriteOrAdministrator)] [ProducesResponseType(204)] [ProducesResponseType(409)] public IActionResult RescanSharesAsync() @@ -173,7 +173,7 @@ namespace slskd.Shares.API /// A share scan was not in progress. [HttpDelete] [Route("")] - [Authorize(Policy = AuthPolicy.Any)] + [Authorize(Policy = AuthPolicy.Any, Roles = AuthRole.ReadWriteOrAdministrator)] [ProducesResponseType(204)] [ProducesResponseType(404)] public IActionResult CancelShareScan() diff --git a/src/slskd/Transfers/API/Controllers/TransfersController.cs b/src/slskd/Transfers/API/Controllers/TransfersController.cs index 3dd2f124..b3453530 100644 --- a/src/slskd/Transfers/API/Controllers/TransfersController.cs +++ b/src/slskd/Transfers/API/Controllers/TransfersController.cs @@ -89,7 +89,7 @@ namespace slskd.Transfers.API /// The download was cancelled successfully. /// The specified download was not found. [HttpDelete("downloads/{username}/{id}")] - [Authorize(Policy = AuthPolicy.Any)] + [Authorize(Policy = AuthPolicy.Any, Roles = AuthRole.ReadWriteOrAdministrator)] [ProducesResponseType(204)] [ProducesResponseType(404)] public IActionResult CancelDownloadAsync([FromRoute, UrlEncoded, Required] string username, [FromRoute, Required] string id, [FromQuery] bool remove = false) @@ -127,7 +127,7 @@ namespace slskd.Transfers.API /// /// The downloads were removed successfully. [HttpDelete("downloads/all/completed")] - [Authorize(Policy = AuthPolicy.Any)] + [Authorize(Policy = AuthPolicy.Any, Roles = AuthRole.ReadWriteOrAdministrator)] [ProducesResponseType(204)] public IActionResult ClearCompletedDownloads() { @@ -158,7 +158,7 @@ namespace slskd.Transfers.API /// The upload was cancelled successfully. /// The specified upload was not found. [HttpDelete("uploads/{username}/{id}")] - [Authorize(Policy = AuthPolicy.Any)] + [Authorize(Policy = AuthPolicy.Any, Roles = AuthRole.ReadWriteOrAdministrator)] [ProducesResponseType(204)] [ProducesResponseType(404)] public IActionResult CancelUpload([FromRoute, UrlEncoded, Required] string username, [FromRoute, Required] string id, [FromQuery] bool remove = false) @@ -196,7 +196,7 @@ namespace slskd.Transfers.API /// /// The uploads were removed successfully. [HttpDelete("uploads/all/completed")] - [Authorize(Policy = AuthPolicy.Any)] + [Authorize(Policy = AuthPolicy.Any, Roles = AuthRole.ReadWriteOrAdministrator)] [ProducesResponseType(204)] public IActionResult ClearCompletedUploads() { @@ -228,7 +228,7 @@ namespace slskd.Transfers.API /// An unexpected error was encountered. [Obsolete("Will be phased out in future versions; use batches")] [HttpPost("downloads/{username}")] - [Authorize(Policy = AuthPolicy.Any)] + [Authorize(Policy = AuthPolicy.Any, Roles = AuthRole.ReadWriteOrAdministrator)] [ProducesResponseType(201)] [ProducesResponseType(typeof(string), 403)] [ProducesResponseType(typeof(string), 500)] @@ -302,7 +302,7 @@ namespace slskd.Transfers.API /// Request throttled. /// An unexpected error was encountered. [HttpPost("downloads/batches")] - [Authorize(Policy = AuthPolicy.Any)] + [Authorize(Policy = AuthPolicy.Any, Roles = AuthRole.ReadWriteOrAdministrator)] [ProducesResponseType(typeof(EnqueueDownloadBatchResponse), StatusCodes.Status200OK)] [ProducesResponseType(typeof(EnqueueDownloadBatchResponse), StatusCodes.Status201Created)] [ProducesResponseType(typeof(EnqueueDownloadBatchResponse), StatusCodes.Status207MultiStatus)] @@ -582,7 +582,7 @@ namespace slskd.Transfers.API /// The request completed successfully. /// The specified download was not found. [HttpGet("downloads/{username}/{id}/position")] - [Authorize(Policy = AuthPolicy.Any)] + [Authorize(Policy = AuthPolicy.Any, Roles = AuthRole.ReadWriteOrAdministrator)] [ProducesResponseType(typeof(Transfer), 200)] [ProducesResponseType(404)] public async Task GetPlaceInQueueAsync([FromRoute, UrlEncoded, Required] string username, [FromRoute, Required] string id) -- cgit v1.2.3 From a3efee00cc7a269f23b6f71564cc577e83533519 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Fri, 23 Oct 2026 14:57:54 -0500 Subject: 24 hour clock --- src/slskd/Core/Data/Migrator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/slskd/Core') diff --git a/src/slskd/Core/Data/Migrator.cs b/src/slskd/Core/Data/Migrator.cs index d53d7c8c..332077a9 100644 --- a/src/slskd/Core/Data/Migrator.cs +++ b/src/slskd/Core/Data/Migrator.cs @@ -133,7 +133,7 @@ public class Migrator */ Log.Warning("{Count} outstanding database migration(s) to apply. This operation must be completed before the application can start.", migrationsToApply.Count()); - var migrationId = DateTime.UtcNow.ToString("MMddyy_hhmmss"); + var migrationId = DateTime.UtcNow.ToString("MMddyy_HHmmss"); Log.Warning("--> The ID for this migration is {MigrationId}. Use it to locate pre-migration database backups, should manual cleanup be needed. <--", migrationId); -- cgit v1.2.3 From aeb702dcd13715ea868456ee7470e753a2a305d3 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Fri, 23 Oct 2026 15:00:28 -0500 Subject: handle ipv6 --- src/slskd/Core/Blacklist.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/slskd/Core') diff --git a/src/slskd/Core/Blacklist.cs b/src/slskd/Core/Blacklist.cs index 517b5e4b..6f25b93c 100644 --- a/src/slskd/Core/Blacklist.cs +++ b/src/slskd/Core/Blacklist.cs @@ -39,6 +39,7 @@ using System.Diagnostics; using System.IO; using System.Linq; using System.Net; +using System.Net.Sockets; using System.Threading.Tasks; using NetTools; using Serilog; @@ -315,6 +316,18 @@ public class Blacklist /// A value indicating whether the specified IP is contained within the blacklist. public virtual bool Contains(IPAddress ip) { + // looks like '::ffff:1.2.3.4'; convert it back to IPv4 so the lookup below works + if (ip.IsIPv4MappedToIPv6) + { + ip = ip.MapToIPv4(); + } + + // only IPv4 ranges are supported + if (ip.AddressFamily != AddressFamily.InterNetwork) + { + return false; + } + // grab the first octet int first = ip.GetAddressBytes()[0]; -- cgit v1.2.3 From 62e2ede877fcc7e91d4c2fe7969f34c9ae818e4d Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Fri, 23 Oct 2026 15:01:18 -0500 Subject: limit real time logs to admin --- src/slskd/Core/API/Hubs/LogsHub.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/slskd/Core') diff --git a/src/slskd/Core/API/Hubs/LogsHub.cs b/src/slskd/Core/API/Hubs/LogsHub.cs index bec12d6a..0697f5ef 100644 --- a/src/slskd/Core/API/Hubs/LogsHub.cs +++ b/src/slskd/Core/API/Hubs/LogsHub.cs @@ -62,7 +62,7 @@ namespace slskd.Core.API /// /// The logs SignalR hub. /// - [Authorize(Policy = AuthPolicy.Any)] + [Authorize(Policy = AuthPolicy.Any, Roles = AuthRole.AdministratorOnly)] public class LogsHub : Hub { public override async Task OnConnectedAsync() -- cgit v1.2.3 From 8b68a8ea7733ad1a4a9e85f296d9f628b71d3e64 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 24 Oct 2026 20:59:38 -0500 Subject: mark props that might contain secrets as secret --- src/slskd/Core/Options.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/slskd/Core') diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs index d2aba37f..9119a8fe 100644 --- a/src/slskd/Core/Options.cs +++ b/src/slskd/Core/Options.cs @@ -1466,6 +1466,7 @@ namespace slskd [EnvironmentVariable("LOKI")] [Description("optional; url to a Grafana Loki instance to which to log")] [RequiresRestart] + [Secret] public string Loki { get; init; } = null; /// @@ -2585,6 +2586,7 @@ namespace slskd /// Gets the fully qualified URL for the webhook. /// [NotNullOrWhiteSpace] + [Secret] public string Url { get; init; } /// @@ -2621,6 +2623,7 @@ namespace slskd /// /// Gets the header's value. /// + [Secret] public string Value { get; init; } } @@ -2661,6 +2664,7 @@ namespace slskd /// /// Gets the shell command to run. /// + [Secret] public string Command { get; init; } /// @@ -2674,6 +2678,7 @@ namespace slskd /// /// Mutually exclusive with . /// + [Secret] public string Args { get; init; } /// -- cgit v1.2.3 From 1cc109a40d1b1d2a8c023c70b44621916641f991 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 25 Oct 2026 11:09:52 -0500 Subject: fix mistake with minimum value --- src/slskd/Core/Options.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/slskd/Core') diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs index 9119a8fe..3a111a99 100644 --- a/src/slskd/Core/Options.cs +++ b/src/slskd/Core/Options.cs @@ -2256,7 +2256,7 @@ namespace slskd [Argument(default, "jwt-ttl")] [EnvironmentVariable("JWT_TTL")] [Description("TTL for JWTs")] - [Range(3600, int.MaxValue)] + [Range(3600000, int.MaxValue)] [RequiresRestart] public int Ttl { get; init; } = 604800000; } -- cgit v1.2.3 From 4ce05449570276bf00ba3be4f7e747d268fa9ebf Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 25 Oct 2026 15:12:55 -0500 Subject: use existing enum validation for envar api keys --- src/slskd/Core/Options.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/slskd/Core') diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs index 3a111a99..dd9c3d02 100644 --- a/src/slskd/Core/Options.cs +++ b/src/slskd/Core/Options.cs @@ -2199,9 +2199,12 @@ namespace slskd { var role = tuple.Split('=').LastOrDefault(); - if (!Enum.TryParse(typeof(Role), value: role, ignoreCase: true, out _)) + var roleResult = new EnumAttribute(typeof(Role), ignoreCase: true) + .GetValidationResult(role, new ValidationContext(this) { MemberName = nameof(ApiKey), DisplayName = "API key role" }); + + if (roleResult != ValidationResult.Success) { - results.Add(new ValidationResult($"API key role must be one of: {string.Join(", ", Enum.GetNames(typeof(Role)))}")); + results.Add(new ValidationResult(roleResult.ErrorMessage)); } } else if (tuple.StartsWith("cidr=", StringComparison.OrdinalIgnoreCase)) -- cgit v1.2.3 From 202a1ea1b57774c4d53605d3a26fa0bd0530165e Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 25 Oct 2026 16:12:34 -0500 Subject: extraneous using --- src/slskd/Core/API/Controllers/ApplicationController.cs | 1 - 1 file changed, 1 deletion(-) (limited to 'src/slskd/Core') diff --git a/src/slskd/Core/API/Controllers/ApplicationController.cs b/src/slskd/Core/API/Controllers/ApplicationController.cs index b90655aa..e015e612 100644 --- a/src/slskd/Core/API/Controllers/ApplicationController.cs +++ b/src/slskd/Core/API/Controllers/ApplicationController.cs @@ -36,7 +36,6 @@ namespace slskd.Core.API { using System; using System.Diagnostics; - using System.IO; using System.Threading.Tasks; using Asp.Versioning; using Microsoft.AspNetCore.Authorization; -- cgit v1.2.3 From be81b3b85b21d502feaf4918a0da92f445f7c2ab Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 25 Oct 2026 16:14:30 -0500 Subject: revert log tweak --- src/slskd/Core/API/Controllers/OptionsController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/slskd/Core') diff --git a/src/slskd/Core/API/Controllers/OptionsController.cs b/src/slskd/Core/API/Controllers/OptionsController.cs index 98028c76..e8769ca9 100644 --- a/src/slskd/Core/API/Controllers/OptionsController.cs +++ b/src/slskd/Core/API/Controllers/OptionsController.cs @@ -196,7 +196,7 @@ namespace slskd.Core.API if (!TryValidateYaml(yaml, out var error)) { - Log.Error("Failed to validate YAML configuration: {Error}", error); + Log.Error(error, "Failed to validate YAML configuration"); return BadRequest(error); } -- cgit v1.2.3