~alexdavid/dotfiles

73ff85d875a0489f08e864e1f7b40a7a68405c05 — Alex David 5 months ago e7f0cb5
Add optional SNI parameter for snc helper
1 files changed, 5 insertions(+), 1 deletions(-)

M bin/snc
M bin/snc => bin/snc +5 -1
@@ 1,3 1,7 @@
#!/usr/bin/env bash

openssl s_client -connect "$1:$2"
if [ -z "$3" ]; then
  openssl s_client -connect "$1:$2"
else
  openssl s_client -connect "$1:$2" -servername "$3"
fi