diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-11-17 19:27:22 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-11-17 19:27:22 -0600 |
| commit | e1ce08a47e12846cd6f7f84703025cb41030d2b6 (patch) | |
| tree | b053b951ffb23862a458662f8581e0beafdb3e83 /src/slskd | |
| parent | fe41700f5466c434ad984ca0e273e08c66d3597a (diff) | |
| download | slskd-e1ce08a47e12846cd6f7f84703025cb41030d2b6.tar.gz | |
stop leaking resources on unauthenticated signalr messages
Diffstat (limited to 'src/slskd')
| -rw-r--r-- | src/slskd/Program.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs index 57d967f0..794a33eb 100644 --- a/src/slskd/Program.cs +++ b/src/slskd/Program.cs @@ -931,7 +931,7 @@ namespace slskd try { // check to see if the provided value is a valid API key - var service = services.BuildServiceProvider().GetRequiredService<SecurityService>(); + var service = context.HttpContext.RequestServices.GetRequiredService<SecurityService>(); var (name, role) = service.AuthenticateWithApiKey(token, callerIpAddress: context.HttpContext.Connection.RemoteIpAddress); // the API key is valid. create a new, short lived jwt for the key name and role |
