Browse Source

make sure that introducer or peer test router is reachable by SSU

pull/1656/head
orignal 3 years ago
parent
commit
39d4464be0
  1. 4
      libi2pd/RouterInfo.cpp

4
libi2pd/RouterInfo.cpp

@ -1135,7 +1135,7 @@ namespace data @@ -1135,7 +1135,7 @@ namespace data
[v4](std::shared_ptr<const RouterInfo::Address> address)->bool
{
return (address->transportStyle == eTransportSSU) && address->IsPeerTesting () &&
((v4 && address->IsV4 ()) || (!v4 && address->IsV6 ()));
((v4 && address->IsV4 ()) || (!v4 && address->IsV6 ())) && address->IsReachableSSU ();
});
}
@ -1146,7 +1146,7 @@ namespace data @@ -1146,7 +1146,7 @@ namespace data
[v4](std::shared_ptr<const RouterInfo::Address> address)->bool
{
return (address->transportStyle == eTransportSSU) && address->IsIntroducer () &&
((v4 && address->IsV4 ()) || (!v4 && address->IsV6 ()));
((v4 && address->IsV4 ()) || (!v4 && address->IsV6 ())) && !address->host.is_unspecified ();
});
}

Loading…
Cancel
Save