mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 06:16:30 +03:00
Fix missing port in origin for redirect
This commit is contained in:
parent
4d5424cac6
commit
bc2b26292d
@ -214,7 +214,7 @@ int NaiveConnection::DoConnectServer() {
|
|||||||
const auto& addr = ipe.address();
|
const auto& addr = ipe.address();
|
||||||
auto name = resolver_->FindNameByAddress(addr);
|
auto name = resolver_->FindNameByAddress(addr);
|
||||||
if (!name.empty()) {
|
if (!name.empty()) {
|
||||||
origin.set_host(name);
|
origin = HostPortPair(name, ipe.port());
|
||||||
} else if (!resolver_->IsInResolvedRange(addr)) {
|
} else if (!resolver_->IsInResolvedRange(addr)) {
|
||||||
origin = HostPortPair::FromIPEndPoint(ipe);
|
origin = HostPortPair::FromIPEndPoint(ipe);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user