mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-23 22:47:12 +01:00
Karsten: you should look at this and decide if we should skip over
non-running hsdirs, or not give them the flag if they're not running, or what. When picking v2 hidden service directories, don't pick ones that aren't listed as Running. svn:r12509
This commit is contained in:
parent
3e9369ebd9
commit
60ee26c873
2 changed files with 3 additions and 1 deletions
|
@ -10,6 +10,8 @@ Changes in version 0.2.0.12-alpha - 2007-11-??
|
||||||
newly picked entry guard. Reported by Mike Perry.
|
newly picked entry guard. Reported by Mike Perry.
|
||||||
- Changing the ExitPolicyRejectPrivate setting should cause us to
|
- Changing the ExitPolicyRejectPrivate setting should cause us to
|
||||||
rebuild the descriptor.
|
rebuild the descriptor.
|
||||||
|
- When picking v2 hidden service directories, don't pick ones that
|
||||||
|
aren't listed as Running.
|
||||||
|
|
||||||
o Minor features:
|
o Minor features:
|
||||||
- When we negotiate a v2 OR connection (not yet implemented), accept
|
- When we negotiate a v2 OR connection (not yet implemented), accept
|
||||||
|
|
|
@ -4480,7 +4480,7 @@ hid_serv_get_responsible_directories(smartlist_t *responsible_dirs,
|
||||||
i = start;
|
i = start;
|
||||||
do {
|
do {
|
||||||
routerstatus_t *r = smartlist_get(c->routerstatus_list, i);
|
routerstatus_t *r = smartlist_get(c->routerstatus_list, i);
|
||||||
if (r->is_hs_dir) {
|
if (r->is_hs_dir && r->is_running) {
|
||||||
smartlist_add(responsible_dirs, r);
|
smartlist_add(responsible_dirs, r);
|
||||||
if (++n_added == REND_NUMBER_OF_CONSECUTIVE_REPLICAS)
|
if (++n_added == REND_NUMBER_OF_CONSECUTIVE_REPLICAS)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue