mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-06 14:47:47 +02:00
add error log for invalid clientIP
This commit is contained in:
@@ -74,6 +74,7 @@ Blacklist.test = function (clientIp, callback) {
|
||||
try {
|
||||
addr = ipaddr.parse(clientIp);
|
||||
} catch (err) {
|
||||
winston.error('[meta/blacklist] Error parsing client IP : ' + clientIp);
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user