Skip to content

Commit

Permalink
add http proxy support for streamlink
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBrax committed Dec 23, 2024
1 parent c7b2b0a commit e459e6e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions common/ServerConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 7 additions & 0 deletions server/src/Core/Providers/Base/BaseAutomator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e459e6e

Please sign in to comment.