mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #6025] [Question]: Custom proxy for /usr/bin/x-ui update #4172
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#4172
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
Originally created by @pythonfree on GitHub (Jul 18, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6025
What are you trying to do?
How to set a custom proxy server for /usr/bin/x-ui update?
What have you already tried?
No response
3x-ui version
3.5.0
How did you install 3x-ui?
install.sh script
Operating system
Ubuntu 24.04
Screenshots or config snippets
No response
Before submitting
@github-actions[bot] commented on GitHub (Jul 18, 2026):
/usr/bin/x-ui updatehas no proxy option of its own. It is thex-ui.shscript (installed to/usr/bin/x-ui); theupdatesubcommand dispatches to theupdate()function (x-ui.sh), which runs:The downloaded
update.shthen makes several more plaincurlcalls of its own: the GitHub API version lookup, the release tarball (x-ui-linux-<arch>.tar.gz), the refreshedx-ui.sh, and (only if missing from the tarball) a systemd unit file. None of these scripts read any x-ui-specific proxy variable — there's no--proxyflag, no config setting, nothing ininstall.sh/update.sh/x-ui.shhandling this. They rely entirely on curl's own standard proxy environment variables, so set those before running the update:or for a SOCKS5 proxy:
Use
export(or prefix the one-off command, e.g.https_proxy=... http_proxy=... x-ui update) rather than a plain shell variable —update()launches a freshbashprocess, and only exported variables are inherited by that process and by every subsequentcurlcall inside the downloadedupdate.sh.Separately: if you instead use the panel's own "Update" button in the web UI, there is a related but narrower setting — Settings → General → "Panel Traffic Outbound" (
panelOutbound,internal/web/service/setting.go) — which routes the panel's own GitHub version check and its fetch ofupdate.shthrough a configured Xray outbound. It does not cover the release tarball download itself, which still happens via plaincurlinside the launchedupdate.shregardless of how the update was triggered. So for the CLI flow you're using, the environment-variable approach above is what actually controls it end-to-end.This reply was generated automatically and a maintainer may follow up.
@pythonfree commented on GitHub (Jul 18, 2026):
Thx!