From c37f1a92d63ce29ab2db6122bcd8e14efebff233 Mon Sep 17 00:00:00 2001 From: klzgrad Date: Thu, 28 Oct 2021 20:20:53 +0800 Subject: [PATCH] socket: Fix invalid SchemeHostPort of bracketless ipv6 hostnames --- src/net/socket/client_socket_pool_manager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/socket/client_socket_pool_manager.cc b/src/net/socket/client_socket_pool_manager.cc index ee4afbe41d..32fb54231c 100644 --- a/src/net/socket/client_socket_pool_manager.cc +++ b/src/net/socket/client_socket_pool_manager.cc @@ -292,7 +292,7 @@ int InitSocketHandleForRawConnect2(const HostPortPair& endpoint, CompletionOnceCallback callback) { DCHECK(socket_handle); return InitSocketPoolHelper( - {"http", endpoint.host(), endpoint.port()}, request_load_flags, + {"http", endpoint.HostForURL(), endpoint.port()}, request_load_flags, request_priority, session, proxy_info, ssl_config_for_origin, ssl_config_for_proxy, /*is_for_websockets=*/true, privacy_mode,