mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-13 06:33:44 +01:00
when listing min-bandwidth servers in the controller, don't get
fooled by a low bandwidthrate svn:r4777
This commit is contained in:
parent
486dc7007b
commit
cc1b82ade8
@ -463,7 +463,9 @@ dirserver_getinfo_unregistered(const char *question)
|
|||||||
for (i = 0; i < smartlist_len(descriptor_list); ++i) {
|
for (i = 0; i < smartlist_len(descriptor_list); ++i) {
|
||||||
ent = smartlist_get(descriptor_list, i);
|
ent = smartlist_get(descriptor_list, i);
|
||||||
r = dirserv_router_fingerprint_is_known(ent);
|
r = dirserv_router_fingerprint_is_known(ent);
|
||||||
if (ent->bandwidthcapacity >= min_bw && r == 0) {
|
if (ent->bandwidthcapacity >= min_bw &&
|
||||||
|
ent->bandwidthrate >= min_bw &&
|
||||||
|
r == 0) {
|
||||||
/* then log this one */
|
/* then log this one */
|
||||||
tor_snprintf(buf, sizeof(buf),
|
tor_snprintf(buf, sizeof(buf),
|
||||||
"%s: BW %d on '%s'.",
|
"%s: BW %d on '%s'.",
|
||||||
|
Loading…
Reference in New Issue
Block a user