diff options
author | Roger Dingledine <arma@torproject.org> | 2007-11-16 05:29:27 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2007-11-16 05:29:27 +0000 |
commit | 60ee26c87379b9c7989672d111421d384c953c59 (patch) | |
tree | 8101d7679b73c35b046f0b4d5e232c2fd2cea882 /src/or/routerlist.c | |
parent | 3e9369ebd9e6f2beded03a4ea0f0d8b114400707 (diff) | |
download | tor-60ee26c87379b9c7989672d111421d384c953c59.tar.gz tor-60ee26c87379b9c7989672d111421d384c953c59.zip |
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
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r-- | src/or/routerlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index d9b84dbd8d..0854e01ab7 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -4480,7 +4480,7 @@ hid_serv_get_responsible_directories(smartlist_t *responsible_dirs, i = start; do { 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); if (++n_added == REND_NUMBER_OF_CONSECUTIVE_REPLICAS) return 0; |