Update access log configuration to enforce boolean type

This commit is contained in:
Cohee 2025-02-22 20:20:23 +02:00
parent a73dfa7586
commit 252ae9f534

View File

@ -3,7 +3,7 @@ import fs from 'node:fs';
import { getRealIpFromHeader } from '../express-common.js';
import { color, getConfigValue } from '../util.js';
const enableAccessLog = getConfigValue('logging.enableAccessLog', true);
const enableAccessLog = getConfigValue('logging.enableAccessLog', true, 'boolean');
const knownIPs = new Set();