diff --git a/portradar.sh b/portradar.sh index bdb3681..65fd3d3 100755 --- a/portradar.sh +++ b/portradar.sh @@ -203,7 +203,7 @@ while [ "$1" != "" ]; do if [[ $1 =~ ^[0-9]+$ && $1 -le 65535 ]]; then port=$1 elif [[ $1 =~ ^[0-9]+(,[0-9]+)+$ ]]; then - ports=$1 + for p in ${1//,/ }; do [[ $p -gt 65535 ]] && help || ports=$1; done else help exit