Dikiy13371
672c45c72d
Merge c76c0bd7cb into f000322a06
2025-12-12 14:30:22 +01:00
Борисов Семён
f000322a06
fix: handle CPU threshold error to prevent false notifications ( #3603 )
...
Release 3X-UI / build (386) (push) Has been cancelled
Release 3X-UI / build (amd64) (push) Has been cancelled
Release 3X-UI / build (arm64) (push) Has been cancelled
Release 3X-UI / build (armv5) (push) Has been cancelled
Release 3X-UI / build (armv6) (push) Has been cancelled
Release 3X-UI / build (armv7) (push) Has been cancelled
Release 3X-UI / build (s390x) (push) Has been cancelled
Release 3X-UI / Build for Windows (push) Has been cancelled
Previously, when GetTgCpu() failed, the error was ignored and threshold
defaulted to 0, causing notifications to be sent for any CPU usage.
Now the job properly checks for errors and skips notifications if:
- The threshold cannot be retrieved (error)
- The threshold is not set or is 0
This ensures notifications are only sent when CPU usage exceeds the
configured threshold value from settings.
2025-12-12 14:29:27 +01:00
Dikiy13371
c76c0bd7cb
Resolve merge conflicts with upstream/main
2025-12-06 18:20:52 +03:00
Dikiy13371
b0fd57f5c6
feat: optimization, audit, websocket, redis fallback, jobs
2025-12-06 17:55:36 +03:00
MHSanaei
0ea8b5352a
fix
Release 3X-UI / build (386) (push) Has been cancelled
Release 3X-UI / build (amd64) (push) Has been cancelled
Release 3X-UI / build (arm64) (push) Has been cancelled
Release 3X-UI / build (armv5) (push) Has been cancelled
Release 3X-UI / build (armv6) (push) Has been cancelled
Release 3X-UI / build (armv7) (push) Has been cancelled
Release 3X-UI / build (s390x) (push) Has been cancelled
Release 3X-UI / Build for Windows (push) Has been cancelled
2025-12-04 00:09:13 +01:00
MHSanaei
68240061aa
Xray Core 25.12.2
2025-12-03 23:45:28 +01:00
MHSanaei
0695f677ba
update dependencies
2025-12-03 23:45:11 +01:00
Danil S.
70f6d6b21a
chore: use Intl for date formatting ( #3588 )
...
* chore: use `Intl` for date formatting
* fix: show last traffic reset
* chore: use raw timestamps
* fix: remove unnecessary import
2025-12-03 23:37:27 +01:00
JieXu
e8c509c720
Update for Red Hat base Linux ( #3589 )
...
Release 3X-UI / build (386) (push) Waiting to run
Release 3X-UI / build (amd64) (push) Waiting to run
Release 3X-UI / build (arm64) (push) Waiting to run
Release 3X-UI / build (armv5) (push) Waiting to run
Release 3X-UI / build (armv6) (push) Waiting to run
Release 3X-UI / build (armv7) (push) Waiting to run
Release 3X-UI / build (s390x) (push) Waiting to run
Release 3X-UI / Build for Windows (push) Waiting to run
* Update install.sh
* Update update.sh
* Update x-ui.sh
* Update install.sh
* Update update.sh
* Update x-ui.sh
* fix
2025-12-03 21:40:49 +01:00
Roman Gogolev
83a1c721c7
Fix int64 for 32-bit arch ( #3591 )
...
* fix int64 for 32-bit arch
* Update web/service/tgbot.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-03 14:58:54 +01:00
Anton Petrov
7ccc0877a1
Add "Last Online" printing for Telegram bot ( #3593 )
2025-12-03 14:43:37 +01:00
Evgeny Popov
ad659e48cf
Update x-ui.sh ( #3595 )
...
Add curl & openssl pkgs for acme inside docker container
2025-12-03 14:42:10 +01:00
mhsanaei
784ed39930
update dependencies
Release 3X-UI / build (386) (push) Has been cancelled
Release 3X-UI / build (amd64) (push) Has been cancelled
Release 3X-UI / build (arm64) (push) Has been cancelled
Release 3X-UI / build (armv5) (push) Has been cancelled
Release 3X-UI / build (armv6) (push) Has been cancelled
Release 3X-UI / build (armv7) (push) Has been cancelled
Release 3X-UI / build (s390x) (push) Has been cancelled
Release 3X-UI / Build for Windows (push) Has been cancelled
2025-11-09 00:56:14 +01:00
fgsfds
538f7fd5d7
Fix: Incorrect time in xray logs ( #3587 )
...
* fixed timezone in xray logs
* remove leading / at the address
2025-11-09 00:42:02 +01:00
fgsfds
cf38226b5d
Add update-all-geofiles key to x-ui.sh ( #3586 )
...
Release 3X-UI / build (386) (push) Waiting to run
Release 3X-UI / build (amd64) (push) Waiting to run
Release 3X-UI / build (arm64) (push) Waiting to run
Release 3X-UI / build (armv5) (push) Waiting to run
Release 3X-UI / build (armv6) (push) Waiting to run
Release 3X-UI / build (armv7) (push) Waiting to run
Release 3X-UI / build (s390x) (push) Waiting to run
Release 3X-UI / Build for Windows (push) Waiting to run
* added update-all-geofiles key to x-ui.sh that updated all geofiles
* fix
* text fixes
* typo fix
* cleanup
2025-11-07 19:26:43 +01:00
lillinlin
575ee854c8
Better Random Reality ( #3585 )
...
Release 3X-UI / build (386) (push) Has been cancelled
Release 3X-UI / build (amd64) (push) Has been cancelled
Release 3X-UI / build (arm64) (push) Has been cancelled
Release 3X-UI / build (armv5) (push) Has been cancelled
Release 3X-UI / build (armv6) (push) Has been cancelled
Release 3X-UI / build (armv7) (push) Has been cancelled
Release 3X-UI / build (s390x) (push) Has been cancelled
Release 3X-UI / Build for Windows (push) Has been cancelled
* Update reality_targets.js
* Update inbound.js
2025-11-02 14:46:50 +01:00
OleksandrParshyn
9936af80dd
Fix: Invoke service.StopBot() in signal handlers ( #3583 )
...
Release 3X-UI / build (386) (push) Waiting to run
Release 3X-UI / build (amd64) (push) Waiting to run
Release 3X-UI / build (arm64) (push) Waiting to run
Release 3X-UI / build (armv5) (push) Waiting to run
Release 3X-UI / build (armv6) (push) Waiting to run
Release 3X-UI / build (armv7) (push) Waiting to run
Release 3X-UI / build (s390x) (push) Waiting to run
Release 3X-UI / Build for Windows (push) Waiting to run
Ensures the global Telegram bot stop function (`service.StopBot()`) is called upon receiving system signals (SIGHUP for restart, SIGINT/SIGTERM for shutdown). This complements the changes in `tgbot.go` to guarantee a clean shutdown of the Telegram bot's Long Polling operation, fully resolving the 409 Conflict issue during panel restarts or shutdowns.
Changes:
- Added `service.StopBot()` call to the `syscall.SIGHUP` handler.
- Added `service.StopBot()` call to the default shutdown handler.
2025-11-01 14:33:35 +01:00
Дмитрий Олегович Саенко
4a75bd0a48
Feature: add setting certs for subscription while generating for panel ( #3578 )
Release 3X-UI / build (386) (push) Waiting to run
Release 3X-UI / build (amd64) (push) Waiting to run
Release 3X-UI / build (arm64) (push) Waiting to run
Release 3X-UI / build (armv5) (push) Waiting to run
Release 3X-UI / build (armv6) (push) Waiting to run
Release 3X-UI / build (armv7) (push) Waiting to run
Release 3X-UI / build (s390x) (push) Waiting to run
Release 3X-UI / Build for Windows (push) Waiting to run
2025-11-01 13:10:27 +01:00
Rashid Yusubov
b0c223c631
fix: improve russian localization ( #3576 )
...
* fix: improve russian localization
* fix: updating the Russian translation according to the suggestions
2025-11-01 13:07:49 +01:00
Denis Gorelov
313b51f96f
feat: Add random Reality Target/SNI selection from 52 popular services ( #3577 )
...
* feat: Add random Reality Target/SNI selection from 52 popular services
- Created reality_targets.js with list of 52 popular services
- Updated RealityStreamSettings to use random targets by default
- Added UI randomize buttons with sync icon in Reality settings form
- Implemented randomizeRealityTarget() method in inbound modal
- Replaces hardcoded google.com with diverse global services
* fix
---------
Co-authored-by: mhsanaei <ho3ein.sanaei@gmail.com>
2025-11-01 13:07:05 +01:00
OleksandrParshyn
020cd63e22
Fix: Graceful Telegram bot shutdown to prevent 409 Conflict ( #3580 )
...
* Fix: Graceful Telegram bot shutdown to prevent 409 Conflict
Introduces a `botCancel` context and a global `StopBot()` function to ensure the Telegram bot's Long Polling operation is safely terminated (via context cancellation) before the service restarts. This prevents the "Conflict: another update consumer is running" (409) error upon panel restart.
Changes:
- Added `botCancel context.CancelFunc` to manage context cancellation.
- Implemented global `StopBot()` function.
- Updated `Tgbot.Stop()` to call `StopBot()`.
- Modified `Tgbot.OnReceive()` to use the new cancellable context for `UpdatesViaLongPolling`.
* Fix: Prevent race condition and goroutine leak in TgBot
Addresses a critical race condition on the global `botCancel` variable, which could occur if `Tgbot.OnReceive()` was called concurrently (e.g., during rapid panel restarts or unexpected behavior).
Changes in tgbot.go:
- Added `tgBotMutex sync.Mutex` to ensure thread safety.
- Protected `botCancel` creation and assignment in `OnReceive()` using the mutex, and added a check to prevent overwriting an active context, which avoids goroutine leaks.
- Protected the cancellation and cleanup logic in `StopBot()` with the mutex.
* Refactor: Replace time.Sleep with sync.WaitGroup for reliable TgBot shutdown
Replaced the unreliable `time.Sleep(1 * time.Second)` in `service.StopBot()` with `sync.WaitGroup`. This ensures the Long Polling goroutine is explicitly waited for and reliably exits before the panel continues, preventing potential resource leaks and incomplete shutdowns during restarts.
Changes:
- Added `botWG sync.WaitGroup` variable.
- Updated `service.StopBot()` to call `botWG.Wait()` instead of `time.Sleep()`.
- Modified `Tgbot.OnReceive()` to correctly use `botWG.Add(1)` and `defer botWG.Done()` within the Long Polling goroutine.
- Corrected the goroutine structure in `OnReceive()` to properly encapsulate all message handling logic.
2025-11-01 13:01:44 +01:00
BOplaid
6e46e9b16e
Improve English README ( #3579 )
2025-11-01 12:48:16 +01:00
mhsanaei
713a7328f6
gofmt
Release 3X-UI / build (386) (push) Has been cancelled
Release 3X-UI / build (amd64) (push) Has been cancelled
Release 3X-UI / build (arm64) (push) Has been cancelled
Release 3X-UI / build (armv5) (push) Has been cancelled
Release 3X-UI / build (armv6) (push) Has been cancelled
Release 3X-UI / build (armv7) (push) Has been cancelled
Release 3X-UI / build (s390x) (push) Has been cancelled
Release 3X-UI / Build for Windows (push) Has been cancelled
2025-10-21 13:02:55 +02:00
mhsanaei
01d4a7488d
v2.8.5
Release 3X-UI / build (386) (push) Has been cancelled
Release 3X-UI / build (amd64) (push) Has been cancelled
Release 3X-UI / build (arm64) (push) Has been cancelled
Release 3X-UI / build (armv5) (push) Has been cancelled
Release 3X-UI / build (armv6) (push) Has been cancelled
Release 3X-UI / build (armv7) (push) Has been cancelled
Release 3X-UI / build (s390x) (push) Has been cancelled
Release 3X-UI / Build for Windows (push) Has been cancelled
2025-10-15 11:40:40 +02:00
mhsanaei
2b2ed3349a
Xray-core v25.10.15
2025-10-15 11:40:04 +02:00
mhsanaei
d8523bbdac
fix(import): prevent sqlite disk I/O error by validating temp DB then swapping
Release 3X-UI / build (386) (push) Waiting to run
Release 3X-UI / build (amd64) (push) Waiting to run
Release 3X-UI / build (arm64) (push) Waiting to run
Release 3X-UI / build (armv5) (push) Waiting to run
Release 3X-UI / build (armv6) (push) Waiting to run
Release 3X-UI / build (armv7) (push) Waiting to run
Release 3X-UI / build (s390x) (push) Waiting to run
Release 3X-UI / Build for Windows (push) Waiting to run
2025-10-14 22:03:17 +02:00
Slava M.
8afa39144e
feat: add file logger support ( #3575 )
...
Release 3X-UI / build (386) (push) Has been cancelled
Release 3X-UI / build (amd64) (push) Has been cancelled
Release 3X-UI / build (arm64) (push) Has been cancelled
Release 3X-UI / build (armv5) (push) Has been cancelled
Release 3X-UI / build (armv6) (push) Has been cancelled
Release 3X-UI / build (armv7) (push) Has been cancelled
Release 3X-UI / build (s390x) (push) Has been cancelled
Release 3X-UI / Build for Windows (push) Has been cancelled
* feat: add backend for file logger
2025-10-09 17:39:29 +02:00
Dikiy13371
d4b6c6fb0e
delete old db
2025-10-08 01:57:09 +03:00
Dikiy13371
c64dfc88ea
db.go sqlite
2025-10-08 01:53:53 +03:00
Dikiy13371
d0874855b2
Fix to sqlite github glebarez
2025-10-08 01:51:21 +03:00
Dikiy13371
d531fc1205
fix dockerfile
2025-10-08 01:46:36 +03:00
Dikiy13371
edaa4851f7
fix web.go
2025-10-08 01:42:52 +03:00
Dikiy13371
b5861d31ae
Fix db.go and setting.go
2025-10-08 01:29:05 +03:00
Dikiy13371
82f0a5680b
getValue setting.go
2025-10-08 01:16:21 +03:00
Dikiy13371
98e5538ab4
add OIDC
2025-10-08 00:57:43 +03:00
Dikiy13371
668f421efd
role_required.go add
2025-10-08 00:56:59 +03:00
Dikiy13371
9178fcfd36
fix web.go controller newauthcontroller api
2025-10-08 00:45:58 +03:00
Dikiy13371
b90788d288
full rebuild web.go
2025-10-08 00:42:05 +03:00
Dikiy13371
7dc52df84f
add user_admin.go in controller
2025-10-08 00:07:26 +03:00
Dikiy13371
ce288d4f6c
add new file auth.go
2025-10-08 00:06:24 +03:00
Dikiy13371
b5ba2e6a2a
add new user_admin.go
2025-10-08 00:03:18 +03:00
Dikiy13371
16720b34db
fix auth.go
2025-10-08 00:00:20 +03:00
Dikiy13371
7cfa516dc4
add auth.go
2025-10-07 23:59:46 +03:00
Dikiy13371
98231d2131
add auth.go
2025-10-07 23:59:35 +03:00
Dikiy13371
a374c39dd8
fix server.go
2025-10-07 23:53:48 +03:00
Dikiy13371
b2ae172623
chore: apply formatting and db.go fixes
2025-10-07 23:46:47 +03:00
Dikiy13371
97e9aca156
Fix db.go
2025-10-07 23:44:05 +03:00
Dikiy13371
f0eca194e2
fix(database): restore working InitDB/GetDB with automigrate and admin seed
2025-10-07 23:39:24 +03:00
Dikiy13371
d457c5a9d0
invalid db.go
2025-10-07 23:34:07 +03:00
Dikiy13371
1aad1ef359
new user.go v2.0
2025-10-07 23:29:43 +03:00