From: Sergey Matveev Date: Tue, 10 Aug 2021 13:06:16 +0000 (+0300) Subject: SNI friendly tlsc -show X-Git-Tag: v0.1.0~13 X-Git-Url: http://www.git.cypherpunks.ru/?p=ucspi.git;a=commitdiff_plain;h=32dd5994ea99710340a8845140d5cc4b10fec0fd SNI friendly tlsc -show --- diff --git a/cmd/tlsc/main.go b/cmd/tlsc/main.go index 8d32b82..4f432cf 100644 --- a/cmd/tlsc/main.go +++ b/cmd/tlsc/main.go @@ -61,7 +61,8 @@ func main() { cfg := &tls.Config{} if *hostname == "" || *onlyShow { cfg.InsecureSkipVerify = true - } else { + } + if *hostname != "" { cfg.ServerName = *hostname } if *crtPath != "" {