mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-06-04 15:11:42 +00:00
don't select random router with older version
This commit is contained in:
@@ -1165,6 +1165,7 @@ namespace data
|
||||
return !router->IsHidden () && router != compatibleWith &&
|
||||
(reverse ? (compatibleWith->IsReachableFrom (*router) && router->GetCompatibleTransports (true)):
|
||||
router->IsReachableFrom (*compatibleWith)) && !router->IsNAT2NATOnly (*compatibleWith) &&
|
||||
router->GetVersion () >= NETDB_MIN_ALLOWED_VERSION &&
|
||||
router->IsECIES () && !router->IsHighCongestion (clientTunnel) &&
|
||||
(!i2p::transport::transports.IsCheckReserved () || !router->IsSameSubnet (*compatibleWith)) &&
|
||||
(!checkIsReal || router->GetProfile ()->IsReal ()) &&
|
||||
|
||||
Reference in New Issue
Block a user