Coder Social home page Coder Social logo

kayon / iploc Goto Github PK

View Code? Open in Web Editor NEW
96.0 96.0 38.0 24.89 MB

每秒百万高性能IP查询库,使用纯真IP库,国内省、市、县,qqwry.dat转换工具:GBK转为UTF-8

License: BSD 3-Clause "New" or "Revised" License

Makefile 1.55% Go 98.45%
go qqwry utf-8

iploc's People

Contributors

kayon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

iploc's Issues

IP 结果有错, 国内地址对齐也不对

国内数据格式化到省、市、县 是错误的
你可以用你自己的测试IP试试

Detail{IP:QQWry.IP{0x1, 0x18, 0x29, 0x0}, Start:QQWry.IP{0x1, 0x18, 0x29, 0x0}, End:QQWry.IP{0x1, 0x18, 0x29, 0xff}, Location:QQWry.Location{Country:"内蒙古锡林郭勒盟苏尼特右旗", Region:"联通", Province:"", City:"", County:"", raw:"内蒙古锡林郭勒盟苏尼特右旗 联通"}}

ip搜索结果不对

loc.Find("1.24.41.0") 返回 美国 亚太互联网络信息中心(CloudFlare节点)

国家获取错误

一些数据会默认不带国家(可能是纯真库的问题),导致后面的省和市直接作为国家。
Example:
ip := "211.93.60.102"
fmt.Println(myloc.IPLoc.Find(ip).Country)
输出结果为:黑龙江省哈尔滨市道外区

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.