mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-27 17:08:28 +00:00
api/match: set alwaysProxy to true if local processing is forced
This commit is contained in:
parent
0fca9c440c
commit
21c4a1ebbc
@ -242,7 +242,8 @@ export default function({
|
||||
defaultParams.filename += `.${audioFormat}`;
|
||||
}
|
||||
|
||||
if ((alwaysProxy || localProcessing === "forced") && responseType === "redirect") {
|
||||
// alwaysProxy is set to true in match.js if localProcessing is forced
|
||||
if (alwaysProxy && responseType === "redirect") {
|
||||
responseType = "tunnel";
|
||||
params.type = "proxy";
|
||||
}
|
||||
|
@ -328,7 +328,7 @@ export default async function({ host, patternMatch, params, isSession, isApiKey
|
||||
convertGif: params.convertGif,
|
||||
requestIP,
|
||||
audioBitrate: params.audioBitrate,
|
||||
alwaysProxy: params.alwaysProxy,
|
||||
alwaysProxy: params.alwaysProxy || localProcessing === "forced",
|
||||
localProcessing,
|
||||
})
|
||||
} catch {
|
||||
|
Loading…
Reference in New Issue
Block a user