mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-22 00:59:08 +01:00
don't create peer for unreachable router
This commit is contained in:
parent
49f4dc53ad
commit
7cfcb12c7b
1 changed files with 4 additions and 0 deletions
|
@ -436,6 +436,10 @@ namespace transport
|
|||
auto it = m_Peers.find (ident);
|
||||
if (it == m_Peers.end ())
|
||||
{
|
||||
// check if not known as unreachable
|
||||
auto profile = i2p::data::GetRouterProfile (ident);
|
||||
if (profile && profile->IsUnreachable ()) return; // don't create peer to unreachable router
|
||||
// try to connect
|
||||
bool connected = false;
|
||||
try
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue