diff options
| author | JP Dillingham <jp@dillingham.me> | 2023-01-07 10:30:06 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2023-01-07 10:30:06 -0600 |
| commit | 8bcfe480bc0ec641dedb384a2af8e5f3866dcbb8 (patch) | |
| tree | 4dd9b714cc20aebfbedb67281b9ab9d393e5f67e /src/slskd | |
| parent | 3ce9de999597db6ae742722c86a7179c5d3282e7 (diff) | |
| download | slskd-8bcfe480bc0ec641dedb384a2af8e5f3866dcbb8.tar.gz | |
use named params to avoid issues with positional weirdness
Diffstat (limited to 'src/slskd')
| -rw-r--r-- | src/slskd/Relay/API/Controllers/RelayController.cs | 2 |
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(); |
