3x-ui/web/service
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
..
config.json dokodemo-door, socks renamed to mixed, tunnel 2025-09-09 13:57:40 +02:00
inbound.go fix: comment out unused checkEmailsExistForClients to pass staticcheck 2026-04-03 02:12:54 +08:00
outbound.go fix security issue 2026-02-09 23:36:10 +01:00
panel.go docs: add comments for all functions 2025-09-20 09:35:50 +02:00
server.go fix: address code review issues for MariaDB support 2026-04-03 09:39:53 +08:00
server_test.go test: add unit tests for critical modules and fix flaky redirect middleware 2026-04-03 08:44:51 +08:00
setting.go fix: address all code review issues for MariaDB support 2026-04-03 09:53:20 +08:00
setting_test.go feat: allow same email across multiple inbounds and auto-add clients on registration 2026-04-03 01:38:31 +08:00
tgbot.go feat(tgbot): send connection links and qrs on client creation (closes #3320)\n\n- Refactored inline keyboards into getCommonClientButtons to respect DRY\n- Extended SubmitAddClient callback handlers to dispatch individual links and QR codes to the bot chat on success. (#3888) 2026-03-17 22:09:49 +01:00
turnstile.go fix: harden registration with rate limiting, input validation, and security fixes 2026-04-03 02:02:25 +08:00
user.go feat: enhance user dashboard, set default creds to admin, trim i18n to en/zh only 2026-04-03 08:13:27 +08:00
user_test.go refactor: update InitDB callers to use new parameterless signature 2026-04-03 09:27:10 +08:00
warp.go docs: add comments for all functions 2025-09-20 09:35:50 +02:00
xray.go Return nil if no error in GetXrayErr 2026-01-13 17:40:52 +01:00
xray_setting.go feat: migrate settings to JSON file, add Cloudflare SSL in installer 2026-04-02 16:16:52 +08:00