X-Git-Url: http://www.git.cypherpunks.ru/?p=ucspi.git;a=blobdiff_plain;f=cmd%2Ftlsc%2Fmain.go;h=4f432cf7e0f1d2863e182bcbf6b4fd7aea568bf2;hp=8d32b827275c3805628f61dd3f00a836207c9c74;hb=32dd5994ea99710340a8845140d5cc4b10fec0fd;hpb=ea05d18d829be5b6c617d6e71144349b2abb856d 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 != "" {