aboutsummaryrefslogtreecommitdiff
path: root/src/feature/nodelist/routerlist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-07-09 09:59:46 -0400
committerNick Mathewson <nickm@torproject.org>2018-07-09 09:59:46 -0400
commit7746b071d8c8bd3d1175fa02a149d099bf082399 (patch)
tree40a8f5080c4044a7d90470cc93a16f56302cc9b9 /src/feature/nodelist/routerlist.c
parent4ff93dd94fb548251ad3d5379e4a329e51e93ef4 (diff)
parent97fad9948312417099fe3d8f5b17484be91ad3f9 (diff)
downloadtor-7746b071d8c8bd3d1175fa02a149d099bf082399.tar.gz
tor-7746b071d8c8bd3d1175fa02a149d099bf082399.zip
Merge remote-tracking branch 'gsomlo/gls-single-da'
Diffstat (limited to 'src/feature/nodelist/routerlist.c')
-rw-r--r--src/feature/nodelist/routerlist.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/feature/nodelist/routerlist.c b/src/feature/nodelist/routerlist.c
index 0ff38f56e6..be58a7a074 100644
--- a/src/feature/nodelist/routerlist.c
+++ b/src/feature/nodelist/routerlist.c
@@ -1806,6 +1806,9 @@ router_pick_dirserver_generic(smartlist_t *sourcelist,
const routerstatus_t *choice;
int busy = 0;
+ if (smartlist_len(sourcelist) == 1)
+ flags |= PDS_ALLOW_SELF;
+
choice = router_pick_trusteddirserver_impl(sourcelist, type, flags, &busy);
if (choice || !(flags & PDS_RETRY_IF_NO_SERVERS))
return choice;