mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
try recently connected SSU2 address if no other transports found
This commit is contained in:
parent
64bde69967
commit
26901e2945
2 changed files with 26 additions and 1 deletions
|
@ -884,7 +884,7 @@ namespace transport
|
|||
if (!isValidEndpoint && router->GetProfile ()->HasLastEndpoint (address->IsV4 ()))
|
||||
{
|
||||
// router doesn't publish endpoint, but we connected before and hole punch might be alive
|
||||
const auto& ep = router->GetProfile ()->GetLastEndpoint ();
|
||||
auto ep = router->GetProfile ()->GetLastEndpoint ();
|
||||
if (IsConnectedRecently (ep))
|
||||
{
|
||||
if (CheckPendingOutgoingSession (ep, peerTest)) return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue