Skip to content

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