Upgraded dependencies, bumped to Node 24.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import config from 'config';
|
||||
import path from 'path';
|
||||
import path from 'node:path';
|
||||
import { Reader } from '@maxmind/geoip2-node';
|
||||
import config from 'config';
|
||||
|
||||
import initLogger from '../logger.js';
|
||||
|
||||
@@ -69,7 +69,8 @@ export default async function initRestrictionHandler() {
|
||||
|
||||
req.restriction = restriction;
|
||||
req.country = country;
|
||||
} catch (error) {
|
||||
}
|
||||
catch (error) {
|
||||
logger.error(`Failed Maxmind IP lookup for ${req.ip}: ${error.message}`);
|
||||
|
||||
req.session.restrictionIp = req.userIp;
|
||||
|
||||
Reference in New Issue
Block a user