diff options
Diffstat (limited to 'bin-src')
-rw-r--r-- | bin-src/tls-getcerts.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin-src/tls-getcerts.go b/bin-src/tls-getcerts.go index 34e25e5..bfc0b5b 100644 --- a/bin-src/tls-getcerts.go +++ b/bin-src/tls-getcerts.go @@ -141,7 +141,7 @@ func getcert(socket string) (*x509.Certificate, error) { return nil, fmt.Errorf("Unknown negotiation path: %q", u.Path) } - connTLS := tls.Client(connRaw, &tls.Config{InsecureSkipVerify: true}) + connTLS := tls.Client(connRaw, &tls.Config{ServerName: host, InsecureSkipVerify: true}) defer connTLS.Close() err = connTLS.Handshake() if err != nil { |