mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-10 05:11:10 +00:00
make sure that introducer or peer test router is reachable by SSU
This commit is contained in:
parent
be48dc6e87
commit
39d4464be0
@ -1135,7 +1135,7 @@ namespace data
|
|||||||
[v4](std::shared_ptr<const RouterInfo::Address> address)->bool
|
[v4](std::shared_ptr<const RouterInfo::Address> address)->bool
|
||||||
{
|
{
|
||||||
return (address->transportStyle == eTransportSSU) && address->IsPeerTesting () &&
|
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
|
[v4](std::shared_ptr<const RouterInfo::Address> address)->bool
|
||||||
{
|
{
|
||||||
return (address->transportStyle == eTransportSSU) && address->IsIntroducer () &&
|
return (address->transportStyle == eTransportSSU) && address->IsIntroducer () &&
|
||||||
((v4 && address->IsV4 ()) || (!v4 && address->IsV6 ()));
|
((v4 && address->IsV4 ()) || (!v4 && address->IsV6 ())) && !address->host.is_unspecified ();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user