X-Git-Url: http://www.git.stargrave.org/?p=tofuproxy.git;a=blobdiff_plain;f=tls%2Fdial.go;fp=tls%2Fdial.go;h=172e3fc81cb353283dbf80ee9ffb40e7b3e3c04c;hp=2f1c8b6daaf8269c09f8d98245d1b4523da19831;hb=b11ace4832d2318235cdb1f836bb3677f6e52a20;hpb=00a1f9bafbb9a03c3753c2e3aee185b0a5fbb344 diff --git a/tls/dial.go b/tls/dial.go index 2f1c8b6..172e3fc 100644 --- a/tls/dial.go +++ b/tls/dial.go @@ -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(