Add white list feature
This commit is contained in:
parent
670719ad8b
commit
b149de071d
@ -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…
x
Reference in New Issue
Block a user