diff options
| author | JP Dillingham <jp@dillingham.me> | 2023-01-07 16:14:32 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2023-01-07 16:14:32 -0600 |
| commit | f07a7758b47388c793d73ca54727db95abfcd229 (patch) | |
| tree | 89a57703213c524f09346aac4fcf3a9ee8b3cf04 /src | |
| parent | f734a9a8cce50e4ed638274758dd1ff0f99e14e7 (diff) | |
| download | slskd-f07a7758b47388c793d73ca54727db95abfcd229.tar.gz | |
localize filename
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Relay/RelayClient.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/slskd/Relay/RelayClient.cs b/src/slskd/Relay/RelayClient.cs index f506ab8f..c2d396a8 100644 --- a/src/slskd/Relay/RelayClient.cs +++ b/src/slskd/Relay/RelayClient.cs @@ -416,6 +416,10 @@ namespace slskd.Relay destinationFile = Path.Combine(OptionsMonitor.CurrentValue.Directories.Downloads, $"{filename}.relayed"); } + // if the controller is Windows and the agent is Linux or vice versa, we need to translate + // the filename to the local OS or we're going to get funny results when we go to write the file + destinationFile = destinationFile.LocalizePath(); + await Retry.Do(task: async () => { using var request = new HttpRequestMessage(HttpMethod.Get, $"api/v0/relay/downloads/{token}"); |
