Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
更改内容\n\n1. 将网关切换功能与 DNS 服务完全分离,每个命令只负责一项功能\n -
proxy
命令只负责切换到代理网关\n -default
命令只负责切换到默认网关\n -dns start
命令单独管理 DNS 服务\n\n2. 从配置中移除enabled
字段,简化配置结构\n - 移除 DNS 配置中不必要的enabled
字段\n - 调整相关代码以适应新的配置结构\n\n3. 更新 README 文档\n - 清晰说明网关切换与 DNS 服务的独立设计\n - 添加关于如何组合使用这些命令的指导\n\n## 改进原因\n\n- 单一职责原则:每个命令只做一件事,更符合良好的软件设计原则\n- 更灵活的使用方式:用户可以根据自己的需求组合使用这些功能\n- 更清晰的用户体验:用户明确知道每个命令的功能\n- 配置简化:移除不必要的配置项