diff --git a/pkg/util/httpstream/spdy/roundtripper.go b/pkg/util/httpstream/spdy/roundtripper.go index ca7e9370ecf..6091c4e4b10 100644 --- a/pkg/util/httpstream/spdy/roundtripper.go +++ b/pkg/util/httpstream/spdy/roundtripper.go @@ -125,6 +125,10 @@ func (s *SpdyRoundTripper) dial(req *http.Request) (net.Conn, error) { return nil, err } + if s.tlsConfig == nil { + s.tlsConfig = &tls.Config{} + } + if len(s.tlsConfig.ServerName) == 0 { s.tlsConfig.ServerName = host }