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 +++++++-- template/p_emma_dead_paths.txt | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 template/p_emma_dead_paths.txt 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; } diff --git a/template/p_emma_dead_paths.txt b/template/p_emma_dead_paths.txt new file mode 100644 index 0000000..262d357 --- /dev/null +++ b/template/p_emma_dead_paths.txt @@ -0,0 +1 @@ +GET /matrix/thirdparty/synapse.git/commit/ -- cgit 1.5.1