Skip to content

Add network proxy setting - #3357

Open
LoliWolf wants to merge 2 commits into
recloudstream:masterfrom
LoliWolf:codex/proxy-settings
Open

LoliWolf wants to merge 2 commits into
recloudstream:masterfrom
LoliWolf:codex/proxy-settings

Conversation

@LoliWolf

Copy link
Copy Markdown

Closes #903

Adds a Network proxy setting (None / HTTP / SOCKS + host:port) under Settings → General → ISP Bypasses, e.g. to use a proxy running on another device in the LAN.

  • Applied to the shared OkHttp clients, so extensions, downloads and playback use it. Changes apply without a restart (image loading needs a restart, same as DoH).
  • Local addresses (localhost, LAN IPs) bypass the proxy, so the torrent server and LAN media servers keep working.
  • The player skips Cronet while a proxy is set, since Cronet can't use a custom proxy (see Add vpn support natively in cloudstream #3059).
  • No silent fallback: if the proxy is down, requests fail.
  • Not included in backups, as it is network specific.
  • EditTextPreference (first use) now matches the app's dialog style and saves on IME "Done", which helps on TV.

Not covered: WebView (e.g. Cloudflare checks).

Testing (Android TV emulator, API 34, logging HTTP/SOCKS proxy): API calls and video go through the proxy (OkHttp instead of Cronet), a LAN video plays directly, an unreachable proxy fails without fallback, None restores Cronet, and backups exclude the setting. The CI tasks (library:checkKotlinAbi, assemblePrereleaseDebug lint check) pass locally in UTC, including the new AppProxySelectorTest.

AI disclosure: written with the help of an AI coding assistant, then built and tested as described above.

Adds an HTTP/SOCKS proxy option under Settings > General > ISP Bypasses.
The proxy is applied to the shared OkHttp clients, requests to local
addresses bypass it, and the player skips Cronet while a proxy is set.
@fire-light42 fire-light42 added Review needed The pull request contains no obvious blockers. It just needs a review before merging. AI Assisted This pull request was AI assisted (or generated). labels Nov 28, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Assisted This pull request was AI assisted (or generated). Review needed The pull request contains no obvious blockers. It just needs a review before merging.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add network proxy settings

2 participants