Skip to content

Add series option to support GeoIP2 premium database - #265

Open
face wants to merge 4 commits into
geoip-lite:mainfrom
face:main
Open

Add series option to support GeoIP2 premium database#265
face wants to merge 4 commits into
geoip-lite:mainfrom
face:main

Conversation

@face

@face face commented May 1, 2024

Copy link
Copy Markdown

This package works great with the more accurate GeoIP2 files, with the following option added to updatedb.js: license=xxxx series=GeoIP2 (where license is subscribed to the premium data).

Comment thread scripts/updatedb.js
});
if (typeof series === 'undefined' && typeof process.env.GEODBSERIES !== 'undefined') {
series = process.env.GEODBSERIES;
} else if (typeof series !== 'undefined') {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you move the else if to a new line?

Comment thread scripts/updatedb.js
series = series.slice('series='.length);
}
if (typeof series === 'undefined') {
series = 'GeoLite2'

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check indentation on these lines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants