| Age | Commit message (Collapse) | Author |
|
* Update install.sh
* Update update.sh
* Update x-ui.sh
* Update install.sh
* Update update.sh
* Update x-ui.sh
* fix
|
|
* 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>
|
|
|
|
Add curl & openssl pkgs for acme inside docker container
|
|
|
|
* fixed timezone in xray logs
* remove leading / at the address
|
|
* added update-all-geofiles key to x-ui.sh that updated all geofiles
* fix
* text fixes
* typo fix
* cleanup
|
|
* Update reality_targets.js
* Update inbound.js
|
|
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.
|
|
|
|
* fix: improve russian localization
* fix: updating the Russian translation according to the suggestions
|
|
* 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>
|
|
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
* feat: add backend for file logger
|
|
Fix RU translation for login title: replace “Приветствие!” with “Добро пожаловать!” to match English “Welcome”.
|
|
|
|
|
|
|
|
|
|
* Update update.sh
* Update install.sh
* Update x-ui.sh
* Update x-ui.sh
|
|
|
|
(#3571)
* Update x-ui.sh
* Update x-ui.sh
* Update x-ui.sh
* Update x-ui.sh
|
|
Co-authored-by: Пичугин Константин <k.pichugin@comagic.dev>
|
|
* add ldap component
* fix: fix russian comments, tls cert verify default true
* feat: remove replaces go mod for local dev
|
|
* feat: Add update script
* Small fix
* Fixed typo
* Fixed typo
* chmod +x
* Update x-ui
* Fixed update message
* Fixed typo
* Added downloading via IPv4
* Remove check_glibc_version
* Fixed self destroy
* Fixed typo
* Fixed self destroy
---------
|
|
|
|
* Add IPv4 for wget in install
* fix: login animation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* add EXPOSE port in Dockerfile
* fix: max port 65 531 -> 65 535
* fix
---------
Co-authored-by: mhsanaei <ho3ein.sanaei@gmail.com>
|
|
Co-authored-by: y.sivushkin <y.sivushkin@corp.101xp.com>
|
|
|
|
* Add Alpine linux support
* Fix for reading logs
|
|
|
|
|
|
|
|
|
|
|