mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 01:15:47 +01:00
linting
This commit is contained in:
@@ -65,9 +65,9 @@ Blacklist.test = function (clientIp, callback) {
|
|||||||
// Some handy test addresses
|
// Some handy test addresses
|
||||||
// clientIp = '2001:db8:85a3:0:0:8a2e:370:7334'; // IPv6
|
// clientIp = '2001:db8:85a3:0:0:8a2e:370:7334'; // IPv6
|
||||||
// clientIp = '127.0.15.1'; // IPv4
|
// clientIp = '127.0.15.1'; // IPv4
|
||||||
// clientIp = '127.0.15.1:3443'; // IPv4 with port strip port to not fail
|
// clientIp = '127.0.15.1:3443'; // IPv4 with port strip port to not fail
|
||||||
clientIp = clientIp.split(":").length === 2 ? clientIp.split(":")[0] : clientIp;
|
clientIp = clientIp.split(':').length === 2 ? clientIp.split(':')[0] : clientIp;
|
||||||
|
|
||||||
var addr = ipaddr.parse(clientIp);
|
var addr = ipaddr.parse(clientIp);
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
|||||||
Reference in New Issue
Block a user