mirror of
https://github.com/byReqz/conn.git
synced 2024-12-26 13:31:48 +00:00
fix for ipv6-detection
This commit is contained in:
parent
b7ff034b49
commit
0adaa2b521
2
conn.sh
2
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 $@
|
||||
|
Loading…
Reference in New Issue
Block a user