Comments (3)
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.
感谢复现这个问题,稍晚些我会对上游纯真数据做一些严格校验逻辑。
from ips.
新版本 2024.5.26 已解决此问题,可以再次尝试 @mili-tan
https://cdn.jsdelivr.net/npm/[email protected]/qqwry.ipdb
from ips.
Related Issues (6)
- 最新的版本转存退不出循环 HOT 1
- 我能把它集成到java项目中吗? HOT 1
- 可以支持查询国内和国外ip时分别指派不同的ip库吗 HOT 1
- 能不能更新打包qqwry格式? HOT 1
- FATA[2024-08-05T08:58:41+08:00] database error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ips.