mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
pass address to NTCP2 session
This commit is contained in:
parent
8f25b66760
commit
1235d18d67
3 changed files with 8 additions and 5 deletions
|
@ -398,7 +398,7 @@ namespace transport
|
|||
auto address = peer.router->GetNTCP2Address (true, !context.SupportsV6 ()); // published only
|
||||
if (address && !peer.router->IsUnreachable () && (!m_CheckReserved || !i2p::util::net::IsInReservedRange(address->host)))
|
||||
{
|
||||
auto s = std::make_shared<NTCP2Session> (*m_NTCP2Server, peer.router);
|
||||
auto s = std::make_shared<NTCP2Session> (*m_NTCP2Server, peer.router, address);
|
||||
|
||||
if(m_NTCP2Server->UsingProxy())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue