diff --git a/run.sh b/run.sh index a443497..ac9d774 100644 --- a/run.sh +++ b/run.sh @@ -98,9 +98,10 @@ if [ -n "${SMTP_NETWORKS}" ]; then for i in $(sed 's/,/\ /g' <<<$SMTP_NETWORKS); do # shellcheck disable=SC2013,SC2001,2086 - if grep -Eq "[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/[0-9]{1,2}" <<<"$i" ; then + if grep -Eq "[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/[0-9]{1,2}" <<<$i ; then nets+=", $i" - elif grep -Eq "$ipv6re" <<<"$i" ; then + elif grep -Eq "$ipv6re" <<<$i ; then + # shellcheck disable=SC1073 readarray -d \/ -t arr < <(printf '%s' "$i") # shellcheck disable=SC1001 nets+=", [${arr[0]}]/${arr[1]}" else