Disallow CIDR /00000

This commit is contained in:
Donal Cahill
2015-12-13 23:16:58 +00:00
parent 2ec724a256
commit 15c200c908
2 changed files with 2 additions and 11 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ TEST_F(UserTest, IsHostAllowed) {
{"127.0.0.1/33", "127.0.0.1", false},
{"::1/129", "::1", false},
{"::2/00000000000", "::1", true},
{"::2/00000000000", "::1", false},
{"::2/0a", "::1", false},
};