From 22a4d44b623b33e6a360f8baab1d6c0fa84be823 Mon Sep 17 00:00:00 2001 From: Rory& Date: Sat, 11 Jul 2026 07:24:19 +0000 Subject: Update --- main.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'main.c') 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; } -- cgit 1.5.1