Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a confidence value and another IP to GeoIP2-Enterprise #150

Merged
merged 5 commits into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
build:
strategy:
matrix:
go-version: [1.21.x, 1.22.x]
go-version: [1.22.x, 1.23.x]
# We don't test on macOS and windows as the database builds aren't
# repeatable there for some reason. As such, tests fail. It'd
# probably be worth looking into this at some point.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
- uses: actions/setup-go@v5
with:
go-version: 1.21
go-version: 1.23
- uses: actions/checkout@v4
with:
persist-credentials: false
Expand Down
11 changes: 0 additions & 11 deletions .perltidyallrc

This file was deleted.

5 changes: 0 additions & 5 deletions .tidyallrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
[PerlTidy]
select = **/*.{pl,pm,t,psgi}
ignore = blib/**/*
argv = --profile=$ROOT/.perltidyallrc

[JSON]
select = **/*.json
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This repository contains the spec for that format as well as test databases.

# Copyright and License

This software is Copyright (c) 2013 - 2024 by MaxMind, Inc.
This software is Copyright (c) 2013 - 2025 by MaxMind, Inc.

This is free software, licensed under the [Apache License, Version
2.0](LICENSE-APACHE) or the [MIT License](LICENSE-MIT), at your option.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/maxmind/MaxMind-DB

go 1.21
go 1.23

require (
github.com/maxmind/mmdbwriter v1.0.0
Expand Down
18 changes: 0 additions & 18 deletions perltidyrc

This file was deleted.

6 changes: 3 additions & 3 deletions source-data/GeoIP2-City-Test.json
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,9 @@
},
{
"214.1.1.0/24" : {
"traits": {
"is_anycast": true
}
"traits" : {
"is_anycast" : true
}
}
},
{
Expand Down
6 changes: 3 additions & 3 deletions source-data/GeoIP2-Country-Test.json
Original file line number Diff line number Diff line change
Expand Up @@ -15903,9 +15903,9 @@
},
{
"214.1.1.0/24" : {
"traits": {
"is_anycast": true
}
"traits" : {
"is_anycast" : true
}
}
},
{
Expand Down
14 changes: 11 additions & 3 deletions source-data/GeoIP2-Enterprise-Test.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
}
},
{
"confidence" : 60,
"geoname_id" : 3333217,
"iso_code" : "WBK",
"names" : {
Expand Down Expand Up @@ -780,9 +781,9 @@
},
{
"214.1.1.0/24" : {
"traits": {
"is_anycast": true
}
"traits" : {
"is_anycast" : true
}
}
},
{
Expand Down Expand Up @@ -1103,5 +1104,12 @@
"user_type" : "hosting"
}
}
},
{
"214.214.214.221/32" : {
"traits" : {
"user_type" : "content_delivery_network"
}
}
}
]
58 changes: 29 additions & 29 deletions source-data/GeoIP2-IP-Risk-Test.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
[
{
"::214.2.3.0/126": {
"ip_risk": 25,
"is_anonymous": true,
"is_anonymous_vpn": true
}
},
{
"::214.2.3.4/128": {
"ip_risk": 50,
"is_anonymous": true,
"is_anonymous_vpn": true,
"is_tor_exit_node": true
}
},
{
"::214.2.3.5/128": {
"ip_risk": 90,
"is_anonymous": true,
"is_anonymous_vpn": true,
"is_residential_proxy": true,
"is_tor_exit_node": true
}
},
{
"::214.2.3.6/128": {
"ip_risk": 85
}
}
{
"::214.2.3.0/126" : {
"ip_risk" : 25,
"is_anonymous" : true,
"is_anonymous_vpn" : true
}
},
{
"::214.2.3.4/128" : {
"ip_risk" : 50,
"is_anonymous" : true,
"is_anonymous_vpn" : true,
"is_tor_exit_node" : true
}
},
{
"::214.2.3.5/128" : {
"ip_risk" : 90,
"is_anonymous" : true,
"is_anonymous_vpn" : true,
"is_residential_proxy" : true,
"is_tor_exit_node" : true
}
},
{
"::214.2.3.6/128" : {
"ip_risk" : 85
}
}
]
Loading
Loading