mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-23 22:06:12 +03:00
Fix incorrect formatting of URL with IPv6 brackets
This commit is contained in:
parent
c9a374fbde
commit
71c67d5347
@ -247,7 +247,7 @@ int NaiveConnection::DoConnectServer() {
|
||||
|
||||
url::CanonHostInfo host_info;
|
||||
url::SchemeHostPort endpoint(
|
||||
"http", CanonicalizeHost(origin.host(), &host_info), origin.port(),
|
||||
"http", CanonicalizeHost(origin.HostForURL(), &host_info), origin.port(),
|
||||
url::SchemeHostPort::ALREADY_CANONICALIZED);
|
||||
if (!endpoint.IsValid()) {
|
||||
LOG(ERROR) << "Connection " << id_ << " to invalid origin " << origin.ToString();
|
||||
|
Loading…
Reference in New Issue
Block a user