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 series option to support GeoIP2 premium database #265

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

face
Copy link

@face face commented May 1, 2024

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).

});
if (typeof series === 'undefined' && typeof process.env.GEODBSERIES !== 'undefined') {
series = process.env.GEODBSERIES;
} else if (typeof series !== 'undefined') {
Copy link
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?

series = series.slice('series='.length);
}
if (typeof series === 'undefined') {
series = 'GeoLite2'
Copy link
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