mirror of
https://github.com/imputnet/cobalt.git
synced 2026-03-12 01:45:57 -05:00
[PR #588] [MERGED] feat: support external proxies #1211
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/imputnet/cobalt/pull/588
Author: @teidesu
Created: 6/25/2024
Status: ✅ Merged
Merged: 7/24/2024
Merged by: @wukko
Base:
current← Head:ext-proxy📝 Commits (2)
ea69fd8feat: support external proxies3f8d5c2fix: error when freebind is enabled📊 Changes
3 files changed (+13 additions, -1 deletions)
View changed files
📝
docs/run-an-instance.md(+1 -0)📝
src/core/api.js(+9 -0)📝
src/modules/config.js(+3 -1)📄 Description
added support for
API_EXTERNAL_PROXYenv variable that sets up a global undici dispatcherdefinitely not the best way to do this (i really dislike relying on globals), but did it like this anyway because:
fetch()where i could provide adispatcherone thing i worry about is the youtube handler which mentions reading
dispatcherfromstreamInfo, but i couldn't find a place where it is being passed there 🧐🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.