This commit is contained in:
Your Name 2024-09-24 22:20:09 -06:00
parent 87c9c30853
commit 2e89c04dc5

View File

@ -1,7 +1,6 @@
#!/bin/bash
FIREWALL="/opt/firewall/firewall.sh"
ACCESS="/tmp/minute.log"
echo "module-nostr"
IP=($(grep $2 $ACCESS | grep "/block=" | cut -d '=' -f2 | cut -d ' ' -f1 | sed 's/"//'))
for i in "${IP[@]}"; do
if [[ "$i" == *"npub"* ]]; then