summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-07-11 07:24:19 +0000
committerRory& <root@rory.gay>2026-07-11 07:24:19 +0000
commit22a4d44b623b33e6a360f8baab1d6c0fa84be823 (patch)
tree2abf66f6c68a9f3a7711f51a93aaa0aa347eddda
parentOld changes (diff)
downloadBlockScrapersC-22a4d44b623b33e6a360f8baab1d6c0fa84be823.tar.xz
Update HEAD master
-rw-r--r--main.c9
-rw-r--r--template/p_emma_dead_paths.txt1
2 files changed, 8 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; } 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/