mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
fixup! Allow bootstrapping networks to have Exit flags
This commit is contained in:
parent
4d6b679318
commit
e24df58245
@ -1521,15 +1521,19 @@ dirserv_compute_performance_thresholds(digestmap_t *omit_as_sybil)
|
||||
continue;
|
||||
|
||||
routerinfo_t *ri = node->ri;
|
||||
/* resolve spurious clang shallow analysis null pointer errors */
|
||||
tor_assert(ri);
|
||||
node->is_exit = (!router_exit_policy_rejects_all(ri) &&
|
||||
exit_policy_is_general_exit(ri->exit_policy));
|
||||
if (ri) {
|
||||
node->is_exit = (!router_exit_policy_rejects_all(ri) &&
|
||||
exit_policy_is_general_exit(ri->exit_policy));
|
||||
}
|
||||
|
||||
if (router_counts_toward_thresholds(node, now, omit_as_sybil,
|
||||
require_mbw)) {
|
||||
const char *id = node->identity;
|
||||
uint32_t bw_kb;
|
||||
|
||||
/* resolve spurious clang shallow analysis null pointer errors */
|
||||
tor_assert(ri);
|
||||
|
||||
uptimes[n_active] = (uint32_t)real_uptime(ri, now);
|
||||
mtbfs[n_active] = rep_hist_get_stability(id, now);
|
||||
tks [n_active] = rep_hist_get_weighted_time_known(id, now);
|
||||
|
Loading…
Reference in New Issue
Block a user