Browse Source

Merge remote-tracking branch 'gsomlo/gls-single-da'

Nick Mathewson 5 years ago
parent
commit
7746b071d8
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/feature/nodelist/routerlist.c

+ 3 - 0
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;