Add white list feature

dev
marcelb 11 months ago
parent 670719ad8b
commit b149de071d
  1. BIN
      test/test
  2. 6
      test/test.cpp

Binary file not shown.

@ -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);

Loading…
Cancel
Save