Skip to content

Conversation

@mxyhi
Copy link

@mxyhi mxyhi commented Jan 27, 2026

Adds a Network settings page to configure a proxy URL used by the updater.

  • Persist AppSettings.proxyUrl in settings.json
  • Pass proxy to @tauri-apps/plugin-updater check() (also used for downloads)
  • Enable reqwest socks feature so socks5(h) URLs work (e.g. socks5h://127.0.0.1:7891)

Currently only applied to updater requests; can be reused for other outbound requests later.

- Add proxyUrl to app settings + Network tab\n- Pass proxy to plugin-updater check()\n- Enable reqwest socks feature for socks5 proxy URLs
@mxyhi mxyhi force-pushed the feat/network-proxy-updater branch from 733212b to 5bc6ab2 Compare January 27, 2026 03:25
@Dimillian
Copy link
Owner

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. Another round soon, please!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Dimillian
Copy link
Owner

Wait why do you want to proxy the updater? Seems dangerous?

@Dimillian
Copy link
Owner

Anyone could setup a proxy update for you (with physical access to ur computer) and send a comprised update no?
What the use case for this?

@mxyhi
Copy link
Author

mxyhi commented Jan 27, 2026

Anyone could setup a proxy update for you (with physical access to ur computer) and send a comprised update no? What the use case for this?

Because of network issues, the network can’t directly access this update URL unless I enable Clash’s global TUN mode.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: edd35a2ba4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 61 to 64
setState({ stage: "checking" });
update = await check();
const trimmedProxyUrl = proxyUrl?.trim() ?? "";
update = await check(trimmedProxyUrl ? { proxy: trimmedProxyUrl } : undefined);
if (!update) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Re-check update after proxy changes before download

The proxy is only applied in the check() call (plugin-updater’s CheckOptions is the only place that accepts a proxy; download/downloadAndInstall don’t take one), so if an update was already cached and the user changes the proxy, startUpdate will reuse the old Update instance and download with the previous proxy. This can cause downloads to keep failing behind a proxy unless the user manually re-checks; consider clearing updateRef or forcing a re-check whenever proxyUrl changes.

Useful? React with 👍 / 👎.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants