fix(autotest): stop running zapret.service before testing to free NFQUEUE

This commit is contained in:
Auto Fix
2026-05-11 17:45:12 +04:00
parent e6551f8954
commit 3c80e67ab4

View File

@@ -130,6 +130,11 @@ main() {
done
echo ""
# Stop any running zapret service before testing
systemctl stop zapret.service 2>/dev/null || true
pkill -f "nfqws.*qnum=$NFQUEUE_NUM" 2>/dev/null || true
sleep 1
[[ "$mode" == "interactive" ]] && read -rp "Press Enter to start..."
cleanup_firewall >/dev/null 2>&1 || true