Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
👽 (mod_globe): Fix #664 Replace geolite2 with geolite2-redist
Browse files Browse the repository at this point in the history
  • Loading branch information
GitSquared committed Jan 22, 2020
1 parent 80c5fbf commit c3c51b0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
6 changes: 4 additions & 2 deletions src/classes/netstat.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@ class Netstat {
this.geoLookup = {
get: () => null
};
let geolite2 = require("geolite2");
let geolite2 = require("geolite2-redist");
let maxmind = require("maxmind");
maxmind.open(geolite2.paths.city).catch(e => {throw e}).then(lookup => {
geolite2.open('GeoLite2-City', path => {
return maxmind.open(path);
}).catch(e => {throw e}).then(lookup => {
this.geoLookup = lookup;
this.lastconn.finished = true;
});
Expand Down
14 changes: 7 additions & 7 deletions src/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"dependencies": {
"augmented-ui": "1.1.0",
"color": "3.1.2",
"geolite2": "2.0.2",
"geolite2-redist": "^1.0.1",
"howler": "2.1.2",
"maxmind": "4.0.0",
"nanoid": "2.1.8",
Expand Down

0 comments on commit c3c51b0

Please sign in to comment.