Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ For dev or build tags, use the same logical version string embedded in the tag.

## [Unreleased]

- The security controller now consumes registered adversarial settings through
`IOptions`, so its settings endpoint no longer reports that configured
adversarial features are unavailable.
- The web footer and README now offer direct PayPal and Ko-fi links for
supporting slskdN development.
- GitLab CI configuration now keeps the Arch package-smoke sudoers command as
Expand Down
4 changes: 2 additions & 2 deletions src/slskd/Common/Security/API/SecurityController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class SecurityController : ControllerBase
public SecurityController(
SecurityServices? security = null,
ISecurityEventSink? eventSink = null,
AdversarialOptions? adversarialOptions = null,
IOptions<AdversarialOptions>? adversarialOptions = null,
AnonymityTransportSelector? transportSelector = null,
Mesh.IMeshCircuitBuilder? circuitBuilder = null,
Mesh.IMeshPeerManager? peerManager = null,
Expand All @@ -57,7 +57,7 @@ public SecurityController(
{
_security = security;
_eventSink = eventSink ?? security?.EventSink;
_adversarialOptions = adversarialOptions;
_adversarialOptions = adversarialOptions?.Value;
_transportSelector = transportSelector;
_circuitBuilder = circuitBuilder;
_peerManager = peerManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ private static SecurityController CreateController(
return new SecurityController(
security,
security?.EventSink,
adversarialOptions,
adversarialOptions == null
? null
: Microsoft.Extensions.Options.Options.Create(adversarialOptions),
null,
circuitBuilder,
null,
Expand Down
Loading