diff --git a/lol.sh b/lol.sh index d138324..3cd8407 100644 --- a/lol.sh +++ b/lol.sh @@ -21,8 +21,10 @@ do find /tmp/ -iname "*.prt" -exec rm {} \; # ---> ratchet destination ports when socat times out, reset once it counts to $ENDPORT - if [[ $PORT != $MAXPORT ]] then - PORT=$((PORT+1)) else + if [[ $PORT != $MAXPORT ]] + then + PORT=$((PORT+1)) + else PORT=$STARTPORT fi