mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
bwauth: Add AuthDirDontVoteOnDirAuthBandwidth option to avoid giving weights to dirauths
This commit is contained in:
parent
ecb91e75e4
commit
b7992d4f79
4
changes/bug40471
Normal file
4
changes/bug40471
Normal file
@ -0,0 +1,4 @@
|
||||
o Minor bugfixes (dirauth, bandwidth scanner):
|
||||
- Add the AuthDirDontVoteOnDirAuthBandwidth dirauth config parameter to
|
||||
avoid voting on bandwidth scanner weights to v3 directory authorities.
|
||||
Fixes bug 40471; bugfix on 0.2.2.1-alpha. Patch by Neel Chauhan.
|
@ -109,4 +109,7 @@ CONF_VAR(VersioningAuthoritativeDirectory, BOOL, 0, "0")
|
||||
* pressure or not. */
|
||||
CONF_VAR(AuthDirRejectRequestsUnderLoad, BOOL, 0, "1")
|
||||
|
||||
/** Boolean: Should we not give bandwidth weight measurements to dirauths? */
|
||||
CONF_VAR(AuthDirDontVoteOnDirAuthBandwidth, BOOL, 0, "1")
|
||||
|
||||
END_CONF_STRUCT(dirauth_options_t)
|
||||
|
@ -2265,7 +2265,8 @@ networkstatus_compute_consensus(smartlist_t *votes,
|
||||
smartlist_add_asprintf(chunks, "pr %s\n", chosen_protocol_list);
|
||||
}
|
||||
/* Now the weight line. */
|
||||
if (rs_out.has_bandwidth) {
|
||||
if (rs_out.has_bandwidth && (!rs_out.is_authority ||
|
||||
!dirauth_get_options()->AuthDirDontVoteOnDirAuthBandwidth)) {
|
||||
char *guardfraction_str = NULL;
|
||||
int unmeasured = rs_out.bw_is_unmeasured;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user