Use CIDR-aware proxy resolver for SPDY RoundTripper

Fixes: #54407
This commit is contained in:
Alexander Kanevskiy 2017-10-23 16:23:55 +03:00
parent 3ae0b84e0b
commit cbc2688be4

View File

@ -110,7 +110,7 @@ func (s *SpdyRoundTripper) Dial(req *http.Request) (net.Conn, error) {
func (s *SpdyRoundTripper) dial(req *http.Request) (net.Conn, error) { func (s *SpdyRoundTripper) dial(req *http.Request) (net.Conn, error) {
proxier := s.proxier proxier := s.proxier
if proxier == nil { if proxier == nil {
proxier = http.ProxyFromEnvironment proxier = utilnet.NewProxierWithNoProxyCIDR(http.ProxyFromEnvironment)
} }
proxyURL, err := proxier(req) proxyURL, err := proxier(req)
if err != nil { if err != nil {