mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 06:16:30 +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::CanonHostInfo host_info;
|
||||||
url::SchemeHostPort endpoint(
|
url::SchemeHostPort endpoint(
|
||||||
"http", CanonicalizeHost(origin.host(), &host_info), origin.port(),
|
"http", CanonicalizeHost(origin.HostForURL(), &host_info), origin.port(),
|
||||||
url::SchemeHostPort::ALREADY_CANONICALIZED);
|
url::SchemeHostPort::ALREADY_CANONICALIZED);
|
||||||
if (!endpoint.IsValid()) {
|
if (!endpoint.IsValid()) {
|
||||||
LOG(ERROR) << "Connection " << id_ << " to invalid origin " << origin.ToString();
|
LOG(ERROR) << "Connection " << id_ << " to invalid origin " << origin.ToString();
|
||||||
|
Loading…
Reference in New Issue
Block a user