add ip tools

This commit is contained in:
2018-01-24 17:06:02 +08:00
parent 729caab98e
commit 224ecc42be
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -6,3 +6,5 @@ common utils for golang
- [jbls](utils/jbls): JetBrains license server, Just for test and study, Please support genuine.
- [jwt](utils/jwt): This is a simple tool to sign, verify and show JSON Web Tokens ([JWT](http://jwt.io/)) from the command line, base [jwt-go](https://github.com/dgrijalva/jwt-go).
- [ip](utils/ip): Obtain public IP, check the intranet IP, detect IP type, check IP range, IP address string and int transformation, according to ip to determine the region and operators, etc
+1 -1
View File
@@ -62,7 +62,7 @@ func GetIntranetIp() {
}
}
func TabaoAPI(ip string) *IPInfo {
func TaobaoAPI(ip string) *IPInfo {
url := "http://ip.taobao.com/service/getIpInfo.php?ip="
url += ip