]> Sergey Matveev's repositories - tofuproxy.git/blobdiff - tls/dial.go
Lowercase domain names
[tofuproxy.git] / tls / dial.go
index 2f1c8b6daaf8269c09f8d98245d1b4523da19831..172e3fc81cb353283dbf80ee9ffb40e7b3e3c04c 100644 (file)
@@ -33,6 +33,7 @@ var sessionCache = tls.NewLRUClientSessionCache(1024)
 
 func DialTLS(ctx context.Context, network, addr string) (net.Conn, error) {
        host, _, _ := SplitHostPort(addr)
+       host = toLowerCaseASCII(host)
        ccg := ClientCertificateGetter{host: host}
        cfg := tls.Config{
                VerifyPeerCertificate: func(