This commit is contained in:
Tom Broughton 2023-10-30 09:22:54 +00:00
parent 03746788ad
commit 0d5f87b6d7

View file

@ -58,11 +58,12 @@ let clientIp = function(req, res) {
}; };
if(config.ipfilter.allowed_ips.length > 0){ if(config.ipfilter.allowed_ips.length > 0){
console.log("using ip filter");
app.use( app.use(
ipFilter({ ipFilter({
detectIp: clientIp, detectIp: clientIp,
forbidden: 'You are not authorized to access this page.', forbidden: 'You are not authorized to access this page.',
filter: config.ipfilter.allowlist_ips, filter: config.ipfilter.allowed_ips,
}) })
); );
} }