mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 03:57:41 +00:00
Fixes panic on round tripper when TLS under a proxy
This commit is contained in:
parent
835a2577f8
commit
5940040c96
@ -125,6 +125,10 @@ func (s *SpdyRoundTripper) dial(req *http.Request) (net.Conn, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if s.tlsConfig == nil {
|
||||||
|
s.tlsConfig = &tls.Config{}
|
||||||
|
}
|
||||||
|
|
||||||
if len(s.tlsConfig.ServerName) == 0 {
|
if len(s.tlsConfig.ServerName) == 0 {
|
||||||
s.tlsConfig.ServerName = host
|
s.tlsConfig.ServerName = host
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user