mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-12 20:36:38 +01:00
make sure that introducer or peer test router is reachable by SSU
This commit is contained in:
parent
be48dc6e87
commit
39d4464be0
1 changed files with 2 additions and 2 deletions
|
@ -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
|
|||
[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…
Add table
Reference in a new issue