Skip to content

Commit

Permalink
fix urfave/cli
Browse files Browse the repository at this point in the history
  • Loading branch information
honwen committed Nov 26, 2019
1 parent 17cdf0c commit 6cdf2b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 6cdf2b1

Please sign in to comment.