add ip tools
This commit is contained in:
parent
729caab98e
commit
224ecc42be
@ -6,3 +6,5 @@ common utils for golang
|
|||||||
- [jbls](utils/jbls): JetBrains license server, Just for test and study, Please support genuine.
|
- [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).
|
- [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
|
@ -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 := "http://ip.taobao.com/service/getIpInfo.php?ip="
|
||||||
url += ip
|
url += ip
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user