Skip to content

Commit

Permalink
IpFilter logger replaced with proxy logger
Browse files Browse the repository at this point in the history
  • Loading branch information
aspic committed Mar 28, 2021
1 parent ea9c91d commit 168ee6a
Showing 1 changed file with 1 addition and 1 deletion.
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 168ee6a

Please sign in to comment.