Repository navigation
feat: 新增独立 DDNS 客户端 cq_ddns_client - #21
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
将原
home_server/client的 Cloudflare DDNS 能力迁入life_tools,命令名为cq_ddns_client。客户端直接查询公网 IP 和 Cloudflare,不再依赖 home_server 源码或服务。主要行为
/etc/life_tools/cq_ddns_client.json,保留旧 YAML 配置和-conf参数;接入根安装/构建脚本、四平台发布包、示例配置及 systemd 模板。-once和只读-dry-run,便于迁移检查。验证
在 SSH 别名
pi的测试目录验证(Ubuntu 24.04.4,Linux amd64,Go 1.21.12,systemd 255):go test -mod=readonly ./...、go test -race -mod=readonly ./cli/cq_ddns_client、./build.sh通过。真实 DNS 地址未变化,实机验证未执行实际 DNS 修改,因此不宣称已验证 Cloudflare 写权限。原
home_client服务保持运行,测试服务和密钥副本已清理。迁移顺序
先合入本 PR,再合入 home_server 的旧客户端移除 PR:mcoder2014/home_server#20 。常驻服务切换独立执行,旧二进制、YAML 和 unit 在验证完成前保留。使用、切换和回滚步骤见
docs/cli/cq_ddns_client.md。