1 files changed, 7 insertions, 2 deletions
diff --git a/main.c b/main.c
index e418ba6..013d362 100644
--- a/main.c
+++ b/main.c
@@ -268,7 +268,7 @@ int* grow_int_array(int* array, size_t newSize)
return newArray;
}
-void ban_ip(char* ip)
+void ban_ip_iptables(char* ip)
{
const __pid_t pid = fork();
if (pid == 0)
@@ -290,6 +290,11 @@ void ban_ip(char* ip)
}
}
+void ban_ip_nftables(char* ip)
+{
+
+}
+
void process_line(char* line, void* cbData)
{
MatchRules* rules = cbData;
@@ -386,7 +391,7 @@ void process_line(char* line, void* cbData)
if (print_only) return;
- ban_ip(ip);
+ ban_ip_iptables(ip);
return;
}
|