Skip to content

Commit

Permalink
Merge pull request #86 from Joohansson/blacklist-logging
Browse files Browse the repository at this point in the history
Blacklist logging
  • Loading branch information
Joohansson authored Apr 2, 2021
2 parents 5cecad7 + 168ee6a commit a45d102
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"esm": "^3.2.25",
"express": "^4.17.1",
"express-basic-auth": "^1.2.0",
"express-ipfilter": "^1.1.2",
"express-ipfilter": "^1.2.0",
"express-slow-down": "^1.4.0",
"fs": "0.0.1-security",
"helmet": "^4.1.1",
Expand Down
2 changes: 1 addition & 1 deletion src/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ if (settings.proxy_hops > 0) {

// Set up blacklist and use the proxy number defined in the settings. Log only IP if blocked
if (settings.use_ip_blacklist) {
app.use(IpFilter(settings.ip_blacklist, {log: false, logLevel: 'deny', trustProxy: settings.proxy_hops}))
app.use(IpFilter(settings.ip_blacklist, {log: false, logLevel: 'deny', trustProxy: settings.proxy_hops, logF: message => logThis(message, 'info')}))
}

// Error handling
Expand Down

0 comments on commit a45d102

Please sign in to comment.