typo
This commit is contained in:
parent
03746788ad
commit
0d5f87b6d7
1 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue