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

Try to fix get IP API that has failed sometimes. #185

Closed FisherMS closed 2 years ago

FisherMS commented 2 years ago

181

Fix get IP failed that has sometimes.

FisherMS commented 2 years ago

只学了两天,我不太清楚 defer response.Body.Close() 这句是该放到循环里面,还是外面。 不过,根据查到的资料,defer放在函数里任何地方都行吧?

TimothyYe commented 2 years ago

不好意思,我在master branch改了一点东西,现在有冲突了,需要手动合并一下

TimothyYe commented 2 years ago

感谢大佬的贡献