diff --git a/common/ServerConfig.ts b/common/ServerConfig.ts index 9b0f361b..1c6fa385 100644 --- a/common/ServerConfig.ts +++ b/common/ServerConfig.ts @@ -415,6 +415,12 @@ export const settingsFields = createSettingsFields({ default: false, }, + "capture.http_proxy": { + group: "Capture", + text: "HTTP proxy", + type: "string", + }, + // sub_lease: { group: "Advanced", text: "Subscription lease", type: "number", default: 604800 }, api_client_id: { group: "Twitch", diff --git a/server/src/Core/Providers/Base/BaseAutomator.ts b/server/src/Core/Providers/Base/BaseAutomator.ts index ebdbf200..53f4eda2 100644 --- a/server/src/Core/Providers/Base/BaseAutomator.ts +++ b/server/src/Core/Providers/Base/BaseAutomator.ts @@ -1659,6 +1659,13 @@ export class BaseAutomator { // stop retrying the fetch after COUNT retry attempt(s). cmd.push("--retry-max", "5"); + if (Config.getInstance().cfg("capture.http_proxy")) { + cmd.push( + "--http-proxy", + Config.getInstance().cfg("capture.http_proxy") + ); + } + // logging level if (Config.getInstance().cfg("capture.loglevel", "info") !== "info") { cmd.push(