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 221 forks source link

Add ip regex match for online ip #120

Closed fanchangyong closed 2 years ago

fanchangyong commented 2 years ago

Some IP check API response not only the exact IP address string, but also some extra informations, like this one: https://www.uc.cn/ip

I made this change to extract the IP address from the API response.

TimothyYe commented 2 years ago

Thanks, if do so, I think we also need to consider matching the IPV6 address, like: image

TimothyYe commented 2 years ago

Close this MR since a similar functionality has been implemented.