Code Monkey home page Code Monkey logo

Comments (3)

sjzar avatar sjzar commented on August 18, 2024 2

Hi, @mili-tan 你好呀。

看了你的问题,应该是 @metowolf 大佬的 qqwry.ipdb 在 0.0.0.0/8 这个 CIDR 没有写入数据导致的。
可以通过以下命令简单复现:

$ wget https://unpkg.com/qqwry.raw.ipdb/qqwry.ipdb

$ ips -i qqwry.raw.ipdb 0.255.0.0
FATA[2024-05-21T21:40:52+08:00] data is not exists

$ ips -i qqwry.raw.ipdb 1.0.0.0
1.0.0.0 [美国]

对于这个问题,可以尝试将数据源更换为 @metowolf 大佬分享的 qqwry.dat 数据源。
如果需要 ipdb 格式的 IP 库文件,可以尝试使用 ips 工具进行重新打包:

$ wget https://github.com/metowolf/qqwry.dat/releases/latest/download/qqwry.dat

$ ips pack -i qqwry.dat -o qqwry_ips.ipdb

$ ips -i qqwry_ips.ipdb 0.0.0.0
0.0.0.0 [IANA 保留地址]

对于不完整的数据库文件进行转存,目前工具的做法是直接报错,考虑的是如果允许忽略错误继续执行,可能会在后续使用转存或重打包数据库文件时造成问题,不如提前处理。

希望对你有所帮助,瑞思拜!

PS. 这个 repo 的 ipdb 打包代码,还参考过 @metowolf 大佬的实现 :)

from ips.

metowolf avatar metowolf commented on August 18, 2024 2

感谢复现这个问题,稍晚些我会对上游纯真数据做一些严格校验逻辑。

from ips.

metowolf avatar metowolf commented on August 18, 2024 1

新版本 2024.5.26 已解决此问题,可以再次尝试 @mili-tan

https://cdn.jsdelivr.net/npm/[email protected]/qqwry.ipdb

from ips.

Related Issues (6)

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.