mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-05-28 01:46:23 +02:00
support ipv6 for outgoing NTCP connections
This commit is contained in:
parent
1408422da9
commit
7fb7341502
6 changed files with 55 additions and 6 deletions
|
@ -253,7 +253,7 @@ namespace transport
|
|||
{
|
||||
// existing session not found. create new
|
||||
// try NTCP first if message size < 16K
|
||||
auto address = r->GetNTCPAddress ();
|
||||
auto address = r->GetNTCPAddress (!context.SupportsV6 ());
|
||||
if (address && !r->UsesIntroducer () && !r->IsUnreachable () && msg->GetLength () < NTCP_MAX_MESSAGE_SIZE)
|
||||
{
|
||||
auto s = new NTCPClient (m_Service, address->host, address->port, *r);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue