wzhe06 / ipdatabase

IP geolocation binary tree search

Home Page:https://github.com/wzhe06/ipdatabase

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

发现了一个问题,在解析地址的时候(地址解析为“全球”)

ludongshalimin opened this issue · comments

当解析如下地址的时候
println(getCity("71.17.103.212")+"|")
println(getCity("103.204.172.213")+"|")
出现两个结果,这会导致,以城市作为主键的数据库表插入失败
全球 |
全球|

请问,如何取得城市名啊?