mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
don't store SSU-specific data for NTCP address
This commit is contained in:
parent
a739580d3f
commit
62ca6212ce
6 changed files with 62 additions and 42 deletions
4
SSU.cpp
4
SSU.cpp
|
@ -417,7 +417,7 @@ namespace transport
|
|||
return;
|
||||
}
|
||||
// create new session
|
||||
int numIntroducers = address->introducers.size ();
|
||||
int numIntroducers = address->ssu->introducers.size ();
|
||||
if (numIntroducers > 0)
|
||||
{
|
||||
std::shared_ptr<SSUSession> introducerSession;
|
||||
|
@ -425,7 +425,7 @@ namespace transport
|
|||
// we might have a session to introducer already
|
||||
for (int i = 0; i < numIntroducers; i++)
|
||||
{
|
||||
auto intr = &(address->introducers[i]);
|
||||
auto intr = &(address->ssu->introducers[i]);
|
||||
boost::asio::ip::udp::endpoint ep (intr->iHost, intr->iPort);
|
||||
if (ep.address ().is_v4 ()) // ipv4 only
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue