Comments (6)
目前没有这个打算。你可以借助本项目,构建自己的数据库文件,参考本项目 README。
from geoip.
目前没有这个打算。你可以借助本项目,构建自己的数据库文件,参考本项目 README。
虽然Issue closed
但,可否询问一下,当前项目程序是否同样支持 db-ip的CSV或者mmdb呢?
https://db-ip.com/db/download/ip-to-country-lite
from geoip.
支持 MaxMind 的 MMDB 格式作为输入端(input)
from geoip.
支持 MaxMind 的 MMDB 格式作为输入端(input)
我看到 plugin/maxmind/mmdb_in.go
有用到 github.com/oschwald/maxminddb-golang
库,这个是库是可以支持读取db-IP mmdb的。
另外config.json只有 maxmindGeoLite2CountryCSV ,mmdb格式是否更改为 maxmindGeoLite2CountryMMDB
还是怎样?
{
"type": "maxmindGeoLite2CountryCSV",
"action": "add",
"args": {
"country": "./geolite2/GeoLite2-Country-Locations-en.csv",
"ipv4": "./geolite2/GeoLite2-Country-Blocks-IPv4.csv",
"ipv6": "./geolite2/GeoLite2-Country-Blocks-IPv6.csv"
}
}
import (
"encoding/json"
"fmt"
"io"
"net/http"
"os"
"path/filepath"
"strings"
"github.com/Loyalsoldier/geoip/lib"
"github.com/oschwald/maxminddb-golang"
)
from geoip.
配置参考:
Lines 30 to 58 in bf51d6a
from geoip.
@MaurUppi 我这边有一份替换maxmind数据库为ipinfo.io 数据库的commit修改 你可以拿去用,准确度比maxmind的数据准确很多
from geoip.
Related Issues (20)
- geolocation HOT 1
- 在 config.json 文件中配置 IP 源,但源中不能有以“::”开头的 IP 段 HOT 1
- 定制`Country.mmdb`增加自己IP到HK,本地生成,结果仍归属于CN HOT 1
- 关于自治域和谷歌IP是否包含youtube的问题 HOT 2
- 看到隔壁的一个 issue HOT 1
- geoip:bigo HOT 1
- 为什么自己添加 IP 源后生成会被自动修改或删除很多 IP 段? HOT 10
- 应从现有国家分类中剔除全球任播IP段 HOT 2
- Netflix的GEOSITE比GEOIP要完整吗 HOT 1
- 请求添加 GCORE AS199524 AS202422 HOT 1
- Please support sing-box srs format officially required in singbox 1.8.0+. HOT 2
- 部分IP同时存在于HK和CN中,但合并后只在HK中 HOT 1
- 请求更改geoip:private的名称 HOT 1
- 202402290055 HK好多都显示CN HOT 2
- 能单独生成一个!cn的ip集吗?应该怎么做? HOT 2
- 单独的IPv6 geoip文件 HOT 1
- 能考虑增加geoip:tor吗?这个也算非常有意义的吧 HOT 1
- geoip:cn 会导致一些*.TW域名直连 HOT 1
- v2ray 的protobuf文件好像更新了,我目前用v2ray的protobuf解析不了 HOT 8
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 geoip.