3x-ui/web
Sora39831 c94372a22c fix: address all code review issues for MariaDB support
- Prevent DBPassword from leaking to frontend (json:"-")
- Make migration direction explicit via --direction flag, set dbType only after success
- Use driver-appropriate DROP INDEX IF EXISTS for SQLite vs MariaDB
- Build DSN with mysql.Config.FormatDSN() to prevent injection with special chars
- Close DB before re-initialization in InitDB
- Add migration tests (5 tests using SQLite in-memory DBs)
- Parse JSON once in GetDBConfigFromJSON instead of 7 times
- Use Go binary for dbType in shell script instead of fragile grep
- Add rollback on failure in db_switch_to_sqlite
- Validate DB settings in CheckValid
2026-04-03 09:53:20 +08:00
..
assets feat: enhance user dashboard, set default creds to admin, trim i18n to en/zh only 2026-04-03 08:13:27 +08:00
controller feat: add user dashboard with role-based access control 2026-04-03 03:29:51 +08:00
entity fix: address all code review issues for MariaDB support 2026-04-03 09:53:20 +08:00
global Refactor code and fix linter warnings (#3627) 2026-01-05 05:54:56 +01:00
html feat: enhance user dashboard, set default creds to admin, trim i18n to en/zh only 2026-04-03 08:13:27 +08:00
job fix: Ban new IPs with fail2ban instead of disconnected the client. (#3919) 2026-03-17 21:18:10 +01:00
locale update dependencies 2026-03-04 13:05:29 +01:00
middleware test: add unit tests for critical modules and fix flaky redirect middleware 2026-04-03 08:44:51 +08:00
network docs: add comments for all functions 2025-09-20 09:35:50 +02:00
service fix: address all code review issues for MariaDB support 2026-04-03 09:53:20 +08:00
session docs: add comments for all functions 2025-09-20 09:35:50 +02:00
translation feat: enhance user dashboard, set default creds to admin, trim i18n to en/zh only 2026-04-03 08:13:27 +08:00
websocket Add url speed test for outbound (#3767) 2026-02-09 21:43:17 +01:00
web.go fix: remove excluded paths from gzip middleware in router initialization (#3860) 2026-03-01 15:18:16 +01:00