aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Relay
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2023-01-07 10:30:06 -0600
committerJP Dillingham <jp@dillingham.me>2023-01-07 10:30:06 -0600
commit8bcfe480bc0ec641dedb384a2af8e5f3866dcbb8 (patch)
tree4dd9b714cc20aebfbedb67281b9ab9d393e5f67e /src/slskd/Relay
parent3ce9de999597db6ae742722c86a7179c5d3282e7 (diff)
downloadslskd-8bcfe480bc0ec641dedb384a2af8e5f3866dcbb8.tar.gz
use named params to avoid issues with positional weirdness
Diffstat (limited to 'src/slskd/Relay')
-rw-r--r--src/slskd/Relay/API/Controllers/RelayController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slskd/Relay/API/Controllers/RelayController.cs b/src/slskd/Relay/API/Controllers/RelayController.cs
index d4fb4810..69087310 100644
--- a/src/slskd/Relay/API/Controllers/RelayController.cs
+++ b/src/slskd/Relay/API/Controllers/RelayController.cs
@@ -200,7 +200,7 @@ namespace slskd.Relay
// provide the encrypted value as the credential with the request. the validation below verifies a bunch of
// things, including that the encrypted value matches the expected value. the goal here is to ensure that the
// caller is the same caller that received the request, and that the caller knows the shared secret.
- if (!Relay.TryValidateFileStreamResponseCredential(token: guid, agentName, filename, credential))
+ if (!Relay.TryValidateFileStreamResponseCredential(token: guid, agentName: agentName, filename: filename, credential: credential))
{
Log.Warning("Failed to authenticate file upload token {Token} from a caller claiming to be agent {Agent}", guid, agentName);
return Unauthorized();