Bump x/net to 0.13
This silences govulncheck detecting https://pkg.go.dev/vuln/GO-2023-1988. containerd does not directly use x/net Signed-off-by: Kern Walster <walster@amazon.com>
This commit is contained in:
5
vendor/golang.org/x/net/http2/transport.go
generated
vendored
5
vendor/golang.org/x/net/http2/transport.go
generated
vendored
@@ -518,11 +518,14 @@ func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error) {
|
||||
func authorityAddr(scheme string, authority string) (addr string) {
|
||||
host, port, err := net.SplitHostPort(authority)
|
||||
if err != nil { // authority didn't have a port
|
||||
host = authority
|
||||
port = ""
|
||||
}
|
||||
if port == "" { // authority's port was empty
|
||||
port = "443"
|
||||
if scheme == "http" {
|
||||
port = "80"
|
||||
}
|
||||
host = authority
|
||||
}
|
||||
if a, err := idna.ToASCII(host); err == nil {
|
||||
host = a
|
||||
|
||||
Reference in New Issue
Block a user