ip离线查询 Dart版本

下载数据

http://q9syw3px9.bkt.clouddn.com/17monipdb.datx

使用方法

import 'package:dart_ip/city.dart';

void main() {
  var city = City(datFile: '17monipdb.datx');
  print(city.find("0.0.0.0"));
  print(city.find("127.0.0.1"));
}

参考

https://github.com/ipipdotnet/datx-python

https://github.com/ipipdotnet/ipdb-python

http://www.ipip.net/download.html

Libraries

city
utils