Add white list feature

This commit is contained in:
marcelb 2024-01-06 22:21:56 +01:00
parent 670719ad8b
commit b149de071d
2 changed files with 4 additions and 2 deletions

BIN
test/test

Binary file not shown.

View File

@ -33,10 +33,12 @@ int main() {
// i++;
// }
myban.add_white_list("192.168.2.74");
myban.fail("192.168.2.74");
cout << myban.ban("192.168.2.74") << endl;
sleep(2);
myban.fail("192.168.2.74");
cout << myban.ban("192.168.2.75") << endl;
sleep(200);
// myban.fail("192.168.2.74");
// sleep(120);