mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #6249] [Feature]: Automatic Updates for Panel and Xray Core / لطفاً برای خود پنل و همچنین هسته Xray Core قابلیت بهروزرسانی خودکار اضافه شود. #4241
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#4241
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 @montiego on GitHub (Aug 18, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6249
Describe the bug
English
Feature Request
Please add Automatic Update options to the panel for both the panel itself and the Xray Core.
The user should be able to independently enable or disable automatic updates for the panel and Xray Core.
Add an option such as:
Panel Auto Update: ON/OFF
Update Channel: Stable / Dev
When enabled, the panel should periodically check for new releases and automatically update itself when a new version is available.
Xray Core Auto Update: ON/OFF
When enabled, the panel should periodically check whether a newer version of Xray Core is available. If a new version is released, the panel should automatically download and install the latest version.
The user should be able to keep this feature disabled if they prefer to manually control Xray Core updates.
The main goal is to allow users to choose whether the panel and Xray Core should be automatically updated, without requiring manual updates whenever a new release becomes available.
فارسی
درخواست قابلیت
لطفاً برای خود پنل و همچنین هسته Xray Core قابلیت بهروزرسانی خودکار اضافه شود.
بهتر است آپدیت خودکار پنل و Xray Core کاملاً مستقل از یکدیگر قابل فعال یا غیرفعال کردن باشند.
۱. بهروزرسانی خودکار پنل
گزینهای مانند:
Panel Auto Update: ON/OFF
Update Channel: Stable / Dev
اضافه شود.
در صورت فعال بودن، پنل بهصورت دورهای وجود نسخه جدید را بررسی کرده و در صورت انتشار نسخه جدید، بهصورت خودکار پنل را آپدیت کند.
۲. بهروزرسانی خودکار Xray Core
یک گزینه جداگانه مانند:
Xray Core Auto Update: ON/OFF
اضافه شود.
در صورت فعال بودن، پنل بهصورت دورهای بررسی کند که آیا نسخه جدیدی از Xray Core منتشر شده است یا خیر.
اگر نسخه جدیدی منتشر شده بود، پنل بهصورت خودکار آخرین نسخه Xray Core را دانلود و نصب کند.
کاربر همچنین بتواند این گزینه را خاموش نگه دارد تا در صورت تمایل، آپدیت Xray Core را بهصورت دستی انجام دهد.
هدف
هدف این قابلیت این است که کاربر بتواند بهصورت اختیاری، آپدیت خودکار پنل و Xray Core را فعال کند تا هر زمان نسخه جدیدی منتشر شد، بدون نیاز به آپدیت دستی، سیستم بهصورت خودکار به آخرین نسخه بهروزرسانی شود.
در عین حال، کاربر باید بتواند هرکدام از این دو قابلیت را مستقل از دیگری خاموش یا روشن کند.
How to reproduce the problem
English
Feature Request
Please add Automatic Update options to the panel for both the panel itself and the Xray Core.
The user should be able to independently enable or disable automatic updates for the panel and Xray Core.
Add an option such as:
Panel Auto Update: ON/OFF
Update Channel: Stable / Dev
When enabled, the panel should periodically check for new releases and automatically update itself when a new version is available.
Xray Core Auto Update: ON/OFF
When enabled, the panel should periodically check whether a newer version of Xray Core is available. If a new version is released, the panel should automatically download and install the latest version.
The user should be able to keep this feature disabled if they prefer to manually control Xray Core updates.
The main goal is to allow users to choose whether the panel and Xray Core should be automatically updated, without requiring manual updates whenever a new release becomes available.
فارسی
درخواست قابلیت
لطفاً برای خود پنل و همچنین هسته Xray Core قابلیت بهروزرسانی خودکار اضافه شود.
بهتر است آپدیت خودکار پنل و Xray Core کاملاً مستقل از یکدیگر قابل فعال یا غیرفعال کردن باشند.
۱. بهروزرسانی خودکار پنل
گزینهای مانند:
Panel Auto Update: ON/OFF
Update Channel: Stable / Dev
اضافه شود.
در صورت فعال بودن، پنل بهصورت دورهای وجود نسخه جدید را بررسی کرده و در صورت انتشار نسخه جدید، بهصورت خودکار پنل را آپدیت کند.
۲. بهروزرسانی خودکار Xray Core
یک گزینه جداگانه مانند:
Xray Core Auto Update: ON/OFF
اضافه شود.
در صورت فعال بودن، پنل بهصورت دورهای بررسی کند که آیا نسخه جدیدی از Xray Core منتشر شده است یا خیر.
اگر نسخه جدیدی منتشر شده بود، پنل بهصورت خودکار آخرین نسخه Xray Core را دانلود و نصب کند.
کاربر همچنین بتواند این گزینه را خاموش نگه دارد تا در صورت تمایل، آپدیت Xray Core را بهصورت دستی انجام دهد.
هدف
هدف این قابلیت این است که کاربر بتواند بهصورت اختیاری، آپدیت خودکار پنل و Xray Core را فعال کند تا هر زمان نسخه جدیدی منتشر شد، بدون نیاز به آپدیت دستی، سیستم بهصورت خودکار به آخرین نسخه بهروزرسانی شود.
در عین حال، کاربر باید بتواند هرکدام از این دو قابلیت را مستقل از دیگری خاموش یا روشن کند.
Expected behavior
No response
Actual behavior
No response
Relevant logs
Screenshots
No response
3x-ui version
3.2.4
Xray-core version
No response
How did you install 3x-ui?
install.sh script
Operating system
ubuntu24
Which parts of the panel are affected?
No response
Browser (only if it is a UI bug)
No response
Is the panel behind a reverse proxy or CDN?
None
Before submitting
@github-actions[bot] commented on GitHub (Aug 18, 2026):
This is a feature request rather than a bug, so I relabelled it and changed the title prefix from
[Bug]:to[Feature]:(previous title: "[Bug]: Automatic Updates for Panel and Xray Core / لطفاً برای خود پنل و همچنین هسته Xray Core قابلیت بهروزرسانی خودکار اضافه شود."). Your text is unchanged.Most of the machinery you describe already exists in the panel; what is missing is only the periodic, unattended trigger.
Already implemented (verified in the source):
GET /panel/api/server/getPanelUpdateInfoandPOST /panel/api/server/updatePanel(internal/web/controller/server.go:53and:71). The logic is ininternal/web/service/panel/panel.go:GetUpdateInfo(line 131) compares the running build against the latest GitHub release,StartUpdate(line 183) downloads and runs the officialupdate.sh.POST /panel/api/server/setUpdateChannel(internal/web/controller/server.go:72) stores thedevChannelEnablesetting (internal/web/service/setting.go:130, defaultfalse), and the dev channel installs the rollingdev-latestpre-release (internal/web/service/panel/panel.go:47).GET /panel/api/server/getXrayVersionandPOST /panel/api/server/installXray/:version(internal/web/controller/server.go:52and:70) callServerService.UpdateXray(internal/web/service/server.go:987), which verifies the downloaded archive against the official SHA-256 digest before installing (internal/web/service/server.go:941).Not implemented, which is exactly your request: nothing schedules any of the above.
startTask()ininternal/web/web.go(lines 303-399) registers no update job, andinternal/web/job/contains none. The closest existing pattern is the WARP IP rotation, which is interval-driven from a stored setting (warpUpdateIntervalplusinternal/web/job/warp_ip_job.go), so the shape you are asking for does fit the codebase.One design detail for whoever picks this up: the panel release tarball ships the Xray binary (
bin/xray-linux-<arch>, seeinstall.sh:1544-1551), so a panel update already replaces Xray with the version pinned to that release. The two toggles would therefore not be fully independent without extra handling.Until such a feature exists, you can schedule the official updater yourself.
x-ui updateasks for interactive confirmation (x-ui.sh:143), so it is not usable from cron; runupdate.shdirectly instead:For the dev channel, set the same tag variable the panel uses (
update.sh:986):Two caveats: an unattended update restarts the panel and Xray, and there is no automatic downgrade, so a rollback is manual via item 5 "Legacy Version" in the
x-uimenu. Dev builds track every commit onmainand are not stable releases.You reported 3.2.4 while the current release is v3.6.0, so updating first is worthwhile in any case: the dev-channel toggle landed in the v3.4.x line (commits dated 24-26 June 2026) and is not present in your build. Note that the published release list goes from v3.2.0 to v3.2.5 with no v3.2.4 tag, so I could not verify that exact version; it does not change the conclusion.
Related prior request: #484 (panel auto-update, 2023), closed as not planned before the in-panel updater existed.
خلاصه فارسی
Stable/Devو همچنین تغییر نسخه Xray-core از داخل پنل.
internal/web/web.goیا
internal/web/job/ثبت نشده است.
(
install.sh:1544-1551)،بنابراین بهروزرسانی پنل عملاً نسخه Xray را هم عوض میکند و مستقل بودن کامل این دو گزینه نیاز به طراحی بیشتری دارد.
update.shرا با cron زمانبندی کنید (نمونههای بالا). دستور
x-ui updateتأیید تعاملی میخواهد و برای cron مناسب نیست.
This reply was generated automatically; a maintainer may follow up. / این پاسخ بهصورت خودکار تولید شده است و ممکن است یکی از نگهدارندگان پروژه پیگیری کند.