Correct maxmind geoip-db GEOLITE2_ISP to GEOIP2_ISP

This commit is contained in:
wiz 2022-07-23 23:53:28 +02:00
parent ffe22399d5
commit ad9e989598
No known key found for this signature in database
GPG Key ID: A394E332255A6173
3 changed files with 5 additions and 5 deletions

View File

@ -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,

View File

@ -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"
},
};

View File

@ -11,7 +11,7 @@ export async function $lookupNodeLocation(): Promise<void> {
const nodes = await nodesApi.$getAllNodes();
const lookupCity = await maxmind.open<CityResponse>(config.MAXMIND.GEOLITE2_CITY);
const lookupAsn = await maxmind.open<AsnResponse>(config.MAXMIND.GEOLITE2_ASN);
const lookupIsp = await maxmind.open<IspResponse>(config.MAXMIND.GEOLITE2_ISP);
const lookupIsp = await maxmind.open<IspResponse>(config.MAXMIND.GEOIP2_ISP);
for (const node of nodes) {
const sockets: string[] = node.sockets.split(',');
@ -95,4 +95,4 @@ export async function $lookupNodeLocation(): Promise<void> {
} catch (e) {
logger.err('$lookupNodeLocation() error: ' + (e instanceof Error ? e.message : e));
}
}
}