options->MaxAdvertisedBandwidth only replaces advertised

bandwidthrate, not advertised bandwidthcapacity


svn:r3818
This commit is contained in:
Roger Dingledine 2005-03-22 20:41:28 +00:00
parent f5c930bb0e
commit 6659cd5e8e

View File

@ -687,8 +687,6 @@ int router_rebuild_descriptor(int force) {
if (options->BandwidthRate > options->MaxAdvertisedBandwidth)
ri->bandwidthrate = (int)options->MaxAdvertisedBandwidth;
if (ri->bandwidthcapacity > options->MaxAdvertisedBandwidth)
ri->bandwidthcapacity = (int)options->MaxAdvertisedBandwidth;
router_add_exit_policy_from_config(ri);
if (desc_routerinfo) /* inherit values */