(from, to string, cache tls.ClientSessionCache)
| 184 | } |
| 185 | |
| 186 | func wrapCacheWithKeyRewrite(from, to string, cache tls.ClientSessionCache) tls.ClientSessionCache { |
| 187 | return clientSessionCacheKeyRewrite{ |
| 188 | from: from, |
| 189 | to: to, |
| 190 | cache: cache, |
| 191 | } |
| 192 | } |
| 193 | |
| 194 | func TLSConfigFromURL(u *url.URL) (*tls.Config, error) { |
| 195 | host := u.Hostname() |