From 5f847a3bb7dcc6d4f037485cc5f7e112af57c44c Mon Sep 17 00:00:00 2001 From: schizza Date: Sun, 28 Apr 2024 17:30:54 +0200 Subject: [PATCH] Fixing typos a minor changes --- install_iptables.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install_iptables.sh b/install_iptables.sh index f57dc19..0f8f0a3 100644 --- a/install_iptables.sh +++ b/install_iptables.sh @@ -55,8 +55,8 @@ function validate_num() { } function validate_dest() { - echo "Validating host '$2' ... " - if ping -c 4 2>/dev/null; then + echo "Validating host '$1' ... " + if ping -c 2 $1 >/dev/null 2>&1; then info "OK" true else