Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ZerXes
Tor
Commits
83de46eb
Commit
83de46eb
authored
Jul 09, 2018
by
Nick Mathewson
🐛
Browse files
Changes file and comment for 25928.
parent
7746b071
Changes
2
Hide whitespace changes
Inline
Side-by-side
changes/ticket25928
0 → 100644
View file @
83de46eb
o Minor features (directory):
- Improved support for networks with only a single authority or a
single fallback directory. Patch from Gabriel Somlo. Closes
ticket 25928.
src/feature/nodelist/routerlist.c
View file @
83de46eb
...
...
@@ -1806,8 +1806,11 @@ router_pick_dirserver_generic(smartlist_t *sourcelist,
const
routerstatus_t
*
choice
;
int
busy
=
0
;
if
(
smartlist_len
(
sourcelist
)
==
1
)
if
(
smartlist_len
(
sourcelist
)
==
1
)
{
/* If there's only one choice, then we should disable the logic that
* would otherwise prevent us from choosing ourself. */
flags
|=
PDS_ALLOW_SELF
;
}
choice
=
router_pick_trusteddirserver_impl
(
sourcelist
,
type
,
flags
,
&
busy
);
if
(
choice
||
!
(
flags
&
PDS_RETRY_IF_NO_SERVERS
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment