3x-ui/docs/Tasktracking/2026-04-15-validate-mariadb-port-input.md
root eca9b219cf docs: add missing task tracking records for multi-node and traffic fixes
Add task tracking records for commits that were missing documentation:
- 2026-04-10: multi-node backend foundation (7 commits)
- 2026-04-15: improve mariadb flow and traffic flush
- 2026-04-23: install cron before acme.sh
- 2026-04-24: resolve client traffic InboundId from DB
- 2026-04-24: fix traffic flush blocked by stale inboundId=0 delta
2026-04-24 03:04:15 +08:00

27 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 任务记录validate-mariadb-port-input
- 日期2026-04-15
- 关联模块install script / db switch menu / test script
- 变更类型:修复
## 背景
远程 MariaDB 连接配置流程中,端口输入未做格式和范围校验,用户输入非法值时只能在后续连接阶段失败,定位不直观。
## 修改内容
-`install.sh` 的远程 MariaDB 分支中新增端口校验循环。
-`x-ui.sh` 的数据库切换到 MariaDB远程分支中新增端口校验循环。
-`tests/mariadb_install_switch_test.sh` 增加断言,校验两处脚本都包含端口非法提示文本。
## 影响范围
- 影响文件:`install.sh`、`x-ui.sh`、`tests/mariadb_install_switch_test.sh`。
- 不影响数据库结构、接口协议、构建流程。
- 仅影响交互式输入阶段的参数合法性检查。
## 验证情况
- 执行 `bash -n install.sh`,通过。
- 执行 `bash -n x-ui.sh`,通过。
- 执行 `bash tests/mariadb_install_switch_test.sh`,通过。
## 风险与后续
- 当前风险较低,变更仅限输入校验逻辑。
- 后续可考虑将端口校验抽为统一函数,减少重复逻辑。