txlyre

txlyre synced commits to main at txlyre/3x-ui from mirror

  • f000322a06 fix: handle CPU threshold error to prevent false notifications (#3603) 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.

3 days ago

txlyre synced commits to main at txlyre/3x-ui from mirror

1 week ago

txlyre synced commits to v1.8.4 at txlyre/dtlspipe from mirror

1 week ago

txlyre synced new reference v1.8.4 to txlyre/dtlspipe from mirror

1 week ago

txlyre synced commits to master at txlyre/dtlspipe from mirror

1 week ago

txlyre synced commits to main at txlyre/3x-ui from mirror

  • e8c509c720 Update for Red Hat base Linux (#3589) * Update install.sh * Update update.sh * Update x-ui.sh * Update install.sh * Update update.sh * Update x-ui.sh * fix
  • 83a1c721c7 Fix int64 for 32-bit arch (#3591) * fix int64 for 32-bit arch * Update web/service/tgbot.go Co-authored-by: Copilot <175728472+[email protected]> --------- Co-authored-by: Copilot <175728472+[email protected]>
  • 7ccc0877a1 Add "Last Online" printing for Telegram bot (#3593)
  • ad659e48cf Update x-ui.sh (#3595) Add curl & openssl pkgs for acme inside docker container
  • View comparison for these 4 commits »

1 week ago

txlyre pushed to master at txlyre/ugushian

2 weeks ago

txlyre synced commits to main at txlyre/3x-ui from mirror

1 month ago

txlyre synced and deleted reference xray_logs_timezone_fix at txlyre/3x-ui from mirror

1 month ago

txlyre synced commits to xray_logs_timezone_fix at txlyre/3x-ui from mirror

1 month ago

txlyre synced commits to xray_logs_timezone_fix at txlyre/3x-ui from mirror

  • 6b44526acb fixed timezone in xray logs
  • 575ee854c8 Better Random Reality (#3585) * Update reality_targets.js * Update inbound.js
  • 9936af80dd Fix: Invoke service.StopBot() in signal handlers (#3583) 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.
  • 4a75bd0a48 Feature: add setting certs for subscription while generating for panel (#3578)
  • b0c223c631 fix: improve russian localization (#3576) * fix: improve russian localization * fix: updating the Russian translation according to the suggestions
  • View comparison for these 10 commits »

1 month ago

txlyre synced new reference xray_logs_timezone_fix to txlyre/3x-ui from mirror

1 month ago

txlyre synced commits to main at txlyre/3x-ui from mirror

  • cf38226b5d Add update-all-geofiles key to x-ui.sh (#3586) * added update-all-geofiles key to x-ui.sh that updated all geofiles * fix * text fixes * typo fix * cleanup

1 month ago

txlyre synced and deleted reference update-all-geofiles-sh at txlyre/3x-ui from mirror

1 month ago

txlyre synced commits to update-all-geofiles-sh at txlyre/3x-ui from mirror

1 month ago

txlyre synced new reference update-all-geofiles-sh to txlyre/3x-ui from mirror

1 month ago

txlyre synced commits to main at txlyre/3x-ui from mirror

  • 575ee854c8 Better Random Reality (#3585) * Update reality_targets.js * Update inbound.js

1 month ago

txlyre synced commits to main at txlyre/3x-ui from mirror

  • 9936af80dd Fix: Invoke service.StopBot() in signal handlers (#3583) 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.

1 month ago

txlyre synced commits to main at txlyre/3x-ui from mirror

  • 4a75bd0a48 Feature: add setting certs for subscription while generating for panel (#3578)
  • b0c223c631 fix: improve russian localization (#3576) * fix: improve russian localization * fix: updating the Russian translation according to the suggestions
  • 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 <[email protected]>
  • 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.
  • 6e46e9b16e Improve English README (#3579)
  • View comparison for these 5 commits »

1 month ago

txlyre synced commits to main at txlyre/3x-ui from mirror

1 month ago