mirror of
https://github.com/portainer/portainer.git
synced 2026-08-07 11:04:49 +00:00
fix(ssrf): disable HTTP/2 for more cases BE-13121 (#3012)
This commit is contained in:
@@ -193,13 +193,11 @@ func httpClient(endpoint *portainer.Endpoint, timeout *time.Duration) (*http.Cli
|
||||
return nil, err
|
||||
}
|
||||
|
||||
transport = &NodeNameTransport{
|
||||
Transport: ssrf.NewTransport(tlsConfig),
|
||||
}
|
||||
t := ssrf.NewTransport(tlsConfig)
|
||||
t.Protocols = ssrf.HTTP1Only()
|
||||
transport = &NodeNameTransport{Transport: t}
|
||||
} else {
|
||||
transport = &NodeNameTransport{
|
||||
Transport: ssrf.NewTransport(nil),
|
||||
}
|
||||
transport = &NodeNameTransport{Transport: ssrf.NewTransport(nil)}
|
||||
}
|
||||
|
||||
clientTimeout := defaultDockerRequestTimeout
|
||||
|
||||
Reference in New Issue
Block a user