aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Relay/API/Controllers
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-11-21 18:58:25 -0600
committerGitHub <noreply@github.com>2022-11-21 18:58:25 -0600
commit8dc6e65a3d18f6a8ad4f0569694b4eef5f023afb (patch)
tree545929a7463c4e6a8b89dc3582f91e6a244d70cc /src/slskd/Relay/API/Controllers
parent6798f34362f59be57040cbd03b6e09386ef3b7dd (diff)
parent8f77abce8504e8bc345a3c89945173c18746a345 (diff)
downloadslskd-8dc6e65a3d18f6a8ad4f0569694b4eef5f023afb.tar.gz
Merge pull request #776 from slskd/relay
Relay tweaks and bug fixes
Diffstat (limited to 'src/slskd/Relay/API/Controllers')
-rw-r--r--src/slskd/Relay/API/Controllers/RelayController.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Relay/API/Controllers/RelayController.cs b/src/slskd/Relay/API/Controllers/RelayController.cs
index c11c33bc..d6f4f840 100644
--- a/src/slskd/Relay/API/Controllers/RelayController.cs
+++ b/src/slskd/Relay/API/Controllers/RelayController.cs
@@ -150,7 +150,7 @@ namespace slskd.Relay
// 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))
{
- Log.Warning("Failed to authenticate file upload token {Token} from a caller claiming to be agent {Agent}", agentName);
+ Log.Warning("Failed to authenticate file upload token {Token} from a caller claiming to be agent {Agent}", guid, agentName);
return Unauthorized();
}
@@ -220,7 +220,7 @@ namespace slskd.Relay
if (!Relay.TryValidateShareUploadCredential(token: guid, agentName, credential))
{
- Log.Warning("Failed to authenticate share upload from caller claiming to be agent {Agent}");
+ Log.Warning("Failed to authenticate share upload from caller claiming to be agent {Agent} using token {Token}", agentName, guid);
return Unauthorized();
}