]> Cypherpunks.ru repositories - ucspi.git/commitdiff
SNI friendly tlsc -show
authorSergey Matveev <stargrave@stargrave.org>
Tue, 10 Aug 2021 13:06:16 +0000 (16:06 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Tue, 10 Aug 2021 13:06:16 +0000 (16:06 +0300)
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 != "" {