mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-28 09:28:29 +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}`;
|
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";
|
responseType = "tunnel";
|
||||||
params.type = "proxy";
|
params.type = "proxy";
|
||||||
}
|
}
|
||||||
|
@ -328,7 +328,7 @@ export default async function({ host, patternMatch, params, isSession, isApiKey
|
|||||||
convertGif: params.convertGif,
|
convertGif: params.convertGif,
|
||||||
requestIP,
|
requestIP,
|
||||||
audioBitrate: params.audioBitrate,
|
audioBitrate: params.audioBitrate,
|
||||||
alwaysProxy: params.alwaysProxy,
|
alwaysProxy: params.alwaysProxy || localProcessing === "forced",
|
||||||
localProcessing,
|
localProcessing,
|
||||||
})
|
})
|
||||||
} catch {
|
} catch {
|
||||||
|
Loading…
Reference in New Issue
Block a user