mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 15:06:38 +02:00
closes #5948
This commit is contained in:
@@ -72,4 +72,9 @@ describe('blacklist', function () {
|
||||
assert(blacklist.test('1.1.1.1'));
|
||||
done();
|
||||
});
|
||||
|
||||
it('should pass ip test and not crash with ipv6 address', function (done) {
|
||||
assert(!blacklist.test('2001:db8:85a3:0:0:8a2e:370:7334'));
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user