mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
if NTCP failed, try to send through SSU
This commit is contained in:
parent
fb2a89cbea
commit
ff9f14d7a6
2 changed files with 14 additions and 5 deletions
|
@ -239,7 +239,7 @@ namespace i2p
|
|||
// existing session not found. create new
|
||||
// try NTCP first
|
||||
auto address = r->GetNTCPAddress ();
|
||||
if (address)
|
||||
if (address && !r->IsUnreachable ())
|
||||
{
|
||||
auto s = new i2p::ntcp::NTCPClient (m_Service, address->host, address->port, *r);
|
||||
AddNTCPSession (s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue