bypass medium congestion(D) routers for client tunnels

This commit is contained in:
orignal 2023-04-10 23:04:38 -04:00
parent 572694b141
commit 4ebc7c970a
5 changed files with 25 additions and 12 deletions

View file

@ -1172,7 +1172,7 @@ namespace data
return !router->IsHidden () && router != compatibleWith &&
(reverse ? compatibleWith->IsReachableFrom (*router) :
router->IsReachableFrom (*compatibleWith)) &&
router->IsECIES ();
router->IsECIES () && !router->IsHighCongestion (false);
});
}
@ -1206,7 +1206,7 @@ namespace data
router->IsReachableFrom (*compatibleWith)) &&
(router->GetCaps () & RouterInfo::eHighBandwidth) &&
router->GetVersion () >= NETDB_MIN_HIGHBANDWIDTH_VERSION &&
router->IsECIES () && !router->IsHighCongestion ();
router->IsECIES () && !router->IsHighCongestion (true);
});
}