Skip to content

Commit

Permalink
Maxmind: mark domain database as not required for GeoLite2 license
Browse files Browse the repository at this point in the history
  • Loading branch information
absorbb committed Dec 28, 2021
1 parent 548e780 commit 9358ba6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/geo/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (f *MaxMindFactory) Test(maxmindURL string) ([]*EditionRule, error) {

//analog
analog := edition.FreeAnalog()
if analog != Unknown {
if analog != Unknown && analog != NotRequired {
rule.Analog = &EditionData{
Name: analog,
Status: StatusUnknown,
Expand Down
2 changes: 1 addition & 1 deletion server/handlers/geo_data_resolvers.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (gdrh *GeoDataResolverHandler) EditionsHandler(c *gin.Context) {
}

analog := edition.FreeAnalog()
if analog != geo.Unknown {
if analog != geo.Unknown && analog != geo.NotRequired {
rule.Analog = &geo.EditionData{
Name: analog,
Status: geo.StatusUnknown,
Expand Down

0 comments on commit 9358ba6

Please sign in to comment.