From b239e94342244539695709d48b7076133b62800f Mon Sep 17 00:00:00 2001 From: wangyu- Date: Sun, 17 Sep 2017 09:05:25 -0500 Subject: [PATCH] fixed -g bug --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index f041551..f410ce5 100755 --- a/main.cpp +++ b/main.cpp @@ -3349,7 +3349,7 @@ void iptables_rule() // handles -a -g --gen-add --keep-rule } if(generate_iptables_rule) { - string rule="iptables -I "; + string rule="iptables -I INPUT "; rule+=pattern; rule+=" -j DROP";