diff --git a/run/ip_tables_utils.sh b/run/ip_tables_utils.sh index 89084f9..6f506cf 100644 --- a/run/ip_tables_utils.sh +++ b/run/ip_tables_utils.sh @@ -4,7 +4,7 @@ add_new_rule() { RULE=("$@") - if rule_exists "${RULE[@}]}"; then + if rule_exists "${RULE[@]}"; then echo "[skip] ${RULE[*]} already exists" elif [[ "${RULE[*]}" =~ "DROP" ]] || [[ "${RULE[*]}" =~ "RETURN" ]] || [[ "${RULE[*]}" =~ "REJECT" ]]; then iptables -A "${RULE[@]}"