Skip to content

Commit

Permalink
Merge pull request #150 from maxmind/horgh/update-dbs
Browse files Browse the repository at this point in the history
Add a confidence value and another IP to GeoIP2-Enterprise
  • Loading branch information
klp2 authored Feb 6, 2025
2 parents dac6727 + 34bfcc6 commit ddd177d
Show file tree
Hide file tree
Showing 41 changed files with 605 additions and 631 deletions.
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

0 comments on commit ddd177d

Please sign in to comment.