From 15219475e9103e9cfc08798c5da30a7b7559b39c Mon Sep 17 00:00:00 2001 From: Dirk Date: Fri, 9 Jun 2017 11:27:59 +0200 Subject: [PATCH] strip supplied port automatically --- utils/ticketbleed.bash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/ticketbleed.bash b/utils/ticketbleed.bash index fc84266..3db93d9 100755 --- a/utils/ticketbleed.bash +++ b/utils/ticketbleed.bash @@ -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=""