mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
handle hostname for STREAM CREATE
This commit is contained in:
parent
e091eba831
commit
bd33ac202f
@ -496,10 +496,9 @@ namespace client
|
|||||||
else
|
else
|
||||||
m_BufferOffset = 0;
|
m_BufferOffset = 0;
|
||||||
|
|
||||||
std::shared_ptr<Address> addr;
|
std::shared_ptr<const Address> addr;
|
||||||
auto pos = destination.find(".b32.i2p");
|
if (destination.find(".i2p") != std::string::npos)
|
||||||
if (pos != std::string::npos)
|
addr = context.GetAddressBook().GetAddress (destination);
|
||||||
addr = std::make_shared<Address>(destination.substr (0, pos));
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
auto dest = std::make_shared<i2p::data::IdentityEx> ();
|
auto dest = std::make_shared<i2p::data::IdentityEx> ();
|
||||||
|
Loading…
Reference in New Issue
Block a user