mark NTCP2 unreachable routers

This commit is contained in:
orignal 2020-06-22 22:32:18 -04:00
parent 951ec567c7
commit a0b35ebd3e
2 changed files with 3 additions and 2 deletions

View file

@ -1305,7 +1305,8 @@ namespace transport
if (ecode != boost::asio::error::operation_aborted)
{
LogPrint (eLogInfo, "NTCP2: Not connected in ", timeout, " seconds");
//i2p::data::netdb.SetUnreachable (conn->GetRemoteIdentity ()->GetIdentHash (), true);
if (conn->GetRemoteIdentity ())
i2p::data::netdb.SetUnreachable (conn->GetRemoteIdentity ()->GetIdentHash (), true);
conn->Terminate ();
}
});