strip supplied port automatically

This commit is contained in:
Dirk 2017-06-09 11:27:59 +02:00
parent b69505223a
commit 15219475e9

View File

@ -17,7 +17,8 @@ trap "cleanup" QUIT EXIT
SID="x00,x00,x0B,xAD,xC0,xDE," # don't forget the trailing comma
NODE="$1"
PORT="443"
NODE="${NODE%:*}" # strip port if supplied
PORT="443" # we curently support 443 only
TLSV=${2:-01} # TLS 1.0=x01 1.1=0x02, 1.2=0x3
MAXSLEEP=10
SOCKREPLY=""