21 lines
1.0 KiB
Diff
21 lines
1.0 KiB
Diff
diff --git a/net/base/proxy_server.cc b/net/base/proxy_server.cc
|
|
index 5a7f32bda80d6270e87659df928d77597495429b..3bb6a11641ee972f52f8cd17218d731b878ce239 100644
|
|
--- a/net/base/proxy_server.cc
|
|
+++ b/net/base/proxy_server.cc
|
|
@@ -77,6 +77,7 @@ ProxyServer ProxyServer::FromSchemeHostAndPort(Scheme scheme,
|
|
ProxyServer ProxyServer::FromSchemeHostAndPort(Scheme scheme,
|
|
std::string_view host,
|
|
std::optional<uint16_t> port) {
|
|
+ BRAVE_PROXY_SERVER_FROM_SCHEME_HOST_AND_PORT_EXTRACT_AUTH_INFO
|
|
// Create INVALID proxies directly using `ProxyServer()`.
|
|
DCHECK_NE(scheme, SCHEME_INVALID);
|
|
|
|
@@ -115,6 +116,7 @@ ProxyServer ProxyServer::FromSchemeHostAndPort(Scheme scheme,
|
|
// A uint16_t port is always valid and canonicalized.
|
|
uint16_t fixed_port = port.value_or(GetDefaultPortForScheme(scheme));
|
|
|
|
+ BRAVE_PROXY_SERVER_FROM_SCHEME_HOST_AND_PORT_RETURN_HOST_PORT_PAIR
|
|
return ProxyServer(scheme, HostPortPair(unbracketed_host, fixed_port));
|
|
}
|
|
|