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的API有的时候会失败。 #181

Closed FisherMS closed 2 years ago

FisherMS commented 2 years ago

image

能加上多个备选的取IP API吗? 这样一个不行换一个。

TimothyYe commented 2 years ago

这个也可以有

FisherMS commented 2 years ago

这个优先级应该更高些。我发现每天都有取不到值的时候。 我先改改试试。

TimothyYe commented 2 years ago

其实这个要看一下是因为网络不稳定,还是真的是获取公网IP的URL不稳定。如果是本地网络不稳定,这个for循环遍历一遍所有的URL也会失败。

FisherMS commented 2 years ago

是的。我发现,有些时候没有连上互连网,请求再多,也没用。 另外,我用2.8.9 发现全部请求都失败了。2.8.8是没有问题的。奇怪了!

TimothyYe commented 2 years ago

因为获取ip那里有个bug,我改好了,重新发布2.8.9