From 0adaa2b52110b2b5f792b77ef13e7496bcd858df Mon Sep 17 00:00:00 2001 From: Nils <32552517+byReqz@users.noreply.github.com> Date: Sun, 17 Jan 2021 16:39:18 +0000 Subject: [PATCH] fix for ipv6-detection --- conn.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conn.sh b/conn.sh index 81d6ca8..d12c228 100644 --- a/conn.sh +++ b/conn.sh @@ -114,7 +114,7 @@ while [ ! -z "$1" ]; do fping -m -e $@ echo "-----------------------------------------------------" exit - elif [[ ! "$1" =~ [0-9]{1,3}(\.[0-9]{1,3}){3} ]] && [[ ! "$2" =~ [0-9]{1,3}(\.[0-9]{1,3}){3} ]] && [[ "$1" =~ [:] ]] && [[ "$2" =~ [:] ]] || [[ ! "$3" =~ [0-9]{1,3}(\.[0-9]{1,3}){3} ]] && [[ ! "$1" =~ [-] ]];then + elif [[ ! "$1" =~ [0-9]{1,3}(\.[0-9]{1,3}){3} ]] && [[ ! "$2" =~ [0-9]{1,3}(\.[0-9]{1,3}){3} ]] && [[ "$1" =~ [:] ]] && [[ "$2" =~ [:] ]] || [[ ! "$3" =~ [0-9]{1,3}(\.[0-9]{1,3}){3} ]] && [[ ! "$1" =~ [-] ]] && [[ ! "$1" =~ [0-9]{1,3}(\.[0-9]{1,3}){3} ]] && [[ ! "$2" =~ [0-9]{1,3}(\.[0-9]{1,3}){3} ]] && [[ "$1" =~ [:] ]] && [[ "$2" =~ [:] ]];then echo "multi-ipv6 input detected, portscan disabled" echo "-------------------Availability----------------------" fping -m -e -6 $@