Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
| ... | ... |
@@ -413,7 +413,7 @@ func (cli *Client) SetCustomHTTPHeaders(headers map[string]string) {
|
| 413 | 413 |
func (cli *Client) Dialer() func(context.Context) (net.Conn, error) {
|
| 414 | 414 |
return func(ctx context.Context) (net.Conn, error) {
|
| 415 | 415 |
if transport, ok := cli.client.Transport.(*http.Transport); ok {
|
| 416 |
- if transport.DialContext != nil {
|
|
| 416 |
+ if transport.DialContext != nil && transport.TLSClientConfig == nil {
|
|
| 417 | 417 |
return transport.DialContext(ctx, cli.proto, cli.addr) |
| 418 | 418 |
} |
| 419 | 419 |
} |