]> Cypherpunks.ru repositories - ucspi.git/blobdiff - cmd/tlsc/main.go
SNI friendly tlsc -show
[ucspi.git] / cmd / tlsc / main.go
index 8d32b827275c3805628f61dd3f00a836207c9c74..4f432cf7e0f1d2863e182bcbf6b4fd7aea568bf2 100644 (file)
@@ -61,7 +61,8 @@ func main() {
        cfg := &tls.Config{}
        if *hostname == "" || *onlyShow {
                cfg.InsecureSkipVerify = true
-       } else {
+       }
+       if *hostname != "" {
                cfg.ServerName = *hostname
        }
        if *crtPath != "" {