From ad9e9895989cccf66ff0baf9416b2a7ffb6d1c24 Mon Sep 17 00:00:00 2001 From: wiz Date: Sat, 23 Jul 2022 23:53:28 +0200 Subject: [PATCH] Correct maxmind geoip-db `GEOLITE2_ISP` to `GEOIP2_ISP` --- backend/mempool-config.sample.json | 2 +- backend/src/config.ts | 4 ++-- backend/src/tasks/lightning/sync-tasks/node-locations.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/mempool-config.sample.json b/backend/mempool-config.sample.json index 88218d9e7..b544a3f9b 100644 --- a/backend/mempool-config.sample.json +++ b/backend/mempool-config.sample.json @@ -67,7 +67,7 @@ "ENABLED": false, "GEOLITE2_CITY": "/usr/local/share/GeoIP/GeoLite2-City.mmdb", "GEOLITE2_ASN": "/usr/local/share/GeoIP/GeoLite2-ASN.mmdb", - "GEOLITE2_ISP": "/usr/local/share/GeoIP/GeoIP2-ISP.mmdb" + "GEOIP2_ISP": "/usr/local/share/GeoIP/GeoIP2-ISP.mmdb" }, "BISQ": { "ENABLED": false, diff --git a/backend/src/config.ts b/backend/src/config.ts index db7acb7a8..0e3382517 100644 --- a/backend/src/config.ts +++ b/backend/src/config.ts @@ -102,7 +102,7 @@ interface IConfig { ENABLED: boolean; GEOLITE2_CITY: string; GEOLITE2_ASN: string; - GEOLITE2_ISP: string; + GEOIP2_ISP: string; }, } @@ -208,7 +208,7 @@ const defaults: IConfig = { 'ENABLED': false, "GEOLITE2_CITY": "/usr/local/share/GeoIP/GeoLite2-City.mmdb", "GEOLITE2_ASN": "/usr/local/share/GeoIP/GeoLite2-ASN.mmdb", - "GEOLITE2_ISP": "/usr/local/share/GeoIP/GeoIP2-ISP.mmdb" + "GEOIP2_ISP": "/usr/local/share/GeoIP/GeoIP2-ISP.mmdb" }, }; diff --git a/backend/src/tasks/lightning/sync-tasks/node-locations.ts b/backend/src/tasks/lightning/sync-tasks/node-locations.ts index a61708f38..483131b26 100644 --- a/backend/src/tasks/lightning/sync-tasks/node-locations.ts +++ b/backend/src/tasks/lightning/sync-tasks/node-locations.ts @@ -11,7 +11,7 @@ export async function $lookupNodeLocation(): Promise { const nodes = await nodesApi.$getAllNodes(); const lookupCity = await maxmind.open(config.MAXMIND.GEOLITE2_CITY); const lookupAsn = await maxmind.open(config.MAXMIND.GEOLITE2_ASN); - const lookupIsp = await maxmind.open(config.MAXMIND.GEOLITE2_ISP); + const lookupIsp = await maxmind.open(config.MAXMIND.GEOIP2_ISP); for (const node of nodes) { const sockets: string[] = node.sockets.split(','); @@ -95,4 +95,4 @@ export async function $lookupNodeLocation(): Promise { } catch (e) { logger.err('$lookupNodeLocation() error: ' + (e instanceof Error ? e.message : e)); } -} \ No newline at end of file +}