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 IPv6 support for Cloudflare #52

Closed TimothyYe closed 4 years ago

SadPencil commented 4 years ago

utils.go 文件中的101行左右, GetIPFromInterface 方法:

        if !isIPv4(ip.String()) {
            continue
        }

这三行需要去掉了 原本这个和上面被注释的if 是互相替换的。现在依然保留这个代码会导致 GetIPFromInterface 不支持 IPv6,直接去掉这三行即可。

TimothyYe commented 4 years ago

@SadPencil 谢谢