Skip to content

feat: add -port CLI flag to lock port configuration#124

Merged
lich0821 merged 1 commit intolich0821:masterfrom
qxo:feat-port-arg
Apr 13, 2026
Merged

feat: add -port CLI flag to lock port configuration#124
lich0821 merged 1 commit intolich0821:masterfrom
qxo:feat-port-arg

Conversation

@qxo
Copy link
Copy Markdown
Contributor

@qxo qxo commented Apr 10, 2026

- 新增 -port 命令行参数强制指定端口
- CLI 指定的端口会被锁定,无法通过 API 修改
- GET /api/config/port 返回 portLocked 状态
- PUT /api/config/port 在锁定时返回 403 禁止访问

    - 新增 -port 命令行参数强制指定端口
    - CLI 指定的端口会被锁定,无法通过 API 修改
    - GET /api/config/port 返回 portLocked 状态
    - PUT /api/config/port 在锁定时返回 403 禁止访问
@lich0821 lich0821 merged commit 6c295c8 into lich0821:master Apr 13, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants