3x-ui/internal
MHSanaei 522b1b64b0
fix(logger): prevent nil-deref panic in migrate/setting CLI paths
The package-level logger is nil until InitLogger runs, which only happens in runWebServer. The migrate and setting subcommands log without initializing it; PR #5520 added a logger.Info on a success path in MigrationRestoreVisionFlow, so 'x-ui migrate' segfaults on installs with a VLESS inbound needing Vision-flow restoration.

Initialize logger to a usable default at package load so no code path can nil-deref it, and set up the dual backend in migrateDb so migration steps are logged like runWebServer.

Fixes #5581
2026-06-26 11:40:13 +02:00
..
config v3.4.1 2026-06-26 00:52:00 +02:00
database feat(iplimit): gate IP limit on fail2ban and reset stale limits 2026-06-22 23:15:58 +02:00
eventbus perf: prevent cron job overlap, auto-set GOMEMLIMIT, fix tgbot userStates race 2026-06-22 02:48:58 +02:00
logger fix(logger): prevent nil-deref panic in migrate/setting CLI paths 2026-06-26 11:40:13 +02:00
mtproto refactor(frontend): move form-item hints from extra to tooltip 2026-06-17 17:24:16 +02:00
sub chore: bump deps and modernize test loops 2026-06-26 00:10:30 +02:00
tunnelmonitor chore: bump deps and modernize test loops 2026-06-26 00:10:30 +02:00
util perf(memory): report real RSS and cut footprint via GOGC + periodic release 2026-06-25 22:16:38 +02:00
web feat(logs): add auto-update toggle to Access Logs and Logs viewers 2026-06-26 00:43:32 +02:00
xray feat(panel): surface dev-build version in UI, bot, and CLI 2026-06-25 02:36:41 +02:00