TimothyYe / godns

A dynamic DNS client tool that supports AliDNS, Cloudflare, Google Domains, DNSPod, HE.net & DuckDNS & DreamHost, etc, written in Go.
https://timothyye.github.io/godns/
Apache License 2.0
1.5k stars 220 forks source link

建议更换默认获取IP接口 #140

Closed del-xiong closed 2 years ago

del-xiong commented 2 years ago

停止工作发现是获取IP被ip.sb拉黑了(频率不高5分钟一次,果然够sb) 换成了https://api.ipify.org/

del-xiong commented 2 years ago

测了下发现是因为ipsb禁止了无ua的请求,可以考虑加上ua 不过感觉既然是api那就不应该做这种限制

TimothyYe commented 2 years ago

谢谢你的建议,空了我改一下把请求的ua加上,另外,再多放几个备用的API在README或者sample config里面

del-xiong commented 2 years ago

好的