突然发现自己 DDNS 域名挂掉了,原因是 ddclient 在依靠外部网站获取公网域名时,不仅解析 http body ,也解析 http header ,而 cloudflare 最近在 http header 里增加了一个 1.0.1.1 被 ddclient 误认为是外网 IP 了。

如果你使用 cf 保护的服务,会被影响,例如
https://icanhazip.com
https://dynamicdns.park-your-domain.com/getip



改成这个就好了
https://ipinfo.io/ip

或者参考以下两个帖子的做法
https://github.com/ddclient/ddclient/issues/820
https://github.com/ddclient/ddclient/issues/818
举报· 104 次点击
登录 注册 站外分享
快来抢沙发
0 条回复  
返回顶部