summaryrefslogtreecommitdiff
path: root/src/sslcat.sh
blob: f923935404cdb731be820824756ec0aa2ce15422 (plain)
1
2
3
4
5
6
7
8
9
host=${1-0}
port=${2-443}
args=""
if [ $# -gt 2 ]
then
  shift; shift
  args="$@"
fi
exec sslclient -RHl0 $args -- "$host" "$port" sh -c 'exec cat <&6'