mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Re-enable last resort attempt to get via tor.
This looks like a bug introduced in
af658b7828.
This commit is contained in:
committed by
Nick Mathewson
parent
f591a4d94c
commit
f752093e16
+4
-5
@@ -518,14 +518,13 @@ MOCK_IMPL(void, directory_get_from_dirserver, (uint8_t dir_purpose,
|
||||
/* */
|
||||
rs = directory_pick_generic_dirserver(type, pds_flags,
|
||||
dir_purpose);
|
||||
if (!rs) {
|
||||
/*XXXX024 I'm pretty sure this can never do any good, since
|
||||
* rs isn't set. */
|
||||
if (!rs)
|
||||
get_via_tor = 1; /* last resort: try routing it via Tor */
|
||||
}
|
||||
}
|
||||
}
|
||||
} else { /* get_via_tor */
|
||||
}
|
||||
|
||||
if (get_via_tor) {
|
||||
/* Never use fascistfirewall; we're going via Tor. */
|
||||
pds_flags |= PDS_IGNORE_FASCISTFIREWALL;
|
||||
rs = router_pick_directory_server(type, pds_flags);
|
||||
|
||||
Reference in New Issue
Block a user