1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-03-10 05:11:10 +00:00

* HTTPProxy.cpp : direct use of parsed url parts in CreateHTTPRequest()

This commit is contained in:
hagen 2016-05-27 00:00:00 +00:00
parent a9f3235fd3
commit 347157b999

View File

@ -188,10 +188,10 @@ namespace proxy {
}
i2p::data::IdentHash identHash;
if (str_rmatch(m_address, ".i2p"))
if (str_rmatch(url.host, ".i2p"))
{
if (!i2p::client::context.GetAddressBook ().GetIdentHash (m_address, identHash)){
RedirectToJumpService(m_address);
if (!i2p::client::context.GetAddressBook ().GetIdentHash (url.host, identHash)){
RedirectToJumpService(url.host);
return false;
}
}