diff --git a/main.go b/main.go index 6a70e63..53e9105 100644 --- a/main.go +++ b/main.go @@ -15,7 +15,7 @@ import ( dns "github.com/chenhw2/aliyun-ddns-cli/alidns" "github.com/chenhw2/ip2loc" - "github.com/urfave/cli" + "gopkg.in/urfave/cli.v1" ) // AccessKey from https://ak-console.aliyun.com/#/accesskey diff --git a/utils.go b/utils.go index 5a93656..45e191e 100644 --- a/utils.go +++ b/utils.go @@ -18,12 +18,12 @@ const regxIP6 = `([0-9A-Fa-f]{0,4}:){2,7}([0-9A-Fa-f]{1,4}$|((25[0-5]|2[0-4][0-9 var ipAPI = []string{ "http://www.net.cn/static/customercare/yourip.asp", "http://ddns.oray.com/checkip", "http://haoip.cn", - "http://cnc.synology.cn:81", "http://jpc.synology.com:81", "http://usc.synology.com:81", - "http://ip.6655.com/ip.aspx", "http://pv.sohu.com/cityjson?ie=utf-8", "http://whois.pconline.com.cn/ipJson.jsp", + "http://pv.sohu.com/cityjson?ie=utf-8", "http://whois.pconline.com.cn/ipJson.jsp", + "http://api-ipv4.ip.sb/ip", "http://ip-api.com/", "http://whatismyip.akamai.com/", } var ip6API = []string{ - "http://ip6only.me/api", "http://v6.ipv6-test.com/api/myip.php", "https://v6.ident.me", + "http://api-ipv6.ip.sb/ip", "http://ip6only.me/api", "http://v6.ipv6-test.com/api/myip.php", "https://v6.ident.me", } var curlVer = []string{