mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-26 23:52:30 +01:00
Remove a needless if (1)
This commit is contained in:
parent
c00b397992
commit
f591a4d94c
1 changed files with 5 additions and 8 deletions
|
@ -527,15 +527,12 @@ MOCK_IMPL(void, directory_get_from_dirserver, (uint8_t dir_purpose,
|
||||||
}
|
}
|
||||||
} else { /* get_via_tor */
|
} else { /* get_via_tor */
|
||||||
/* Never use fascistfirewall; we're going via Tor. */
|
/* Never use fascistfirewall; we're going via Tor. */
|
||||||
if (1) {
|
|
||||||
/* anybody with a non-zero dirport will do. Disregard firewalls. */
|
|
||||||
pds_flags |= PDS_IGNORE_FASCISTFIREWALL;
|
pds_flags |= PDS_IGNORE_FASCISTFIREWALL;
|
||||||
rs = router_pick_directory_server(type, pds_flags);
|
rs = router_pick_directory_server(type, pds_flags);
|
||||||
/* If we have any hope of building an indirect conn, we know some router
|
/* If we have any hope of building an indirect conn, we know some router
|
||||||
* descriptors. If (rs==NULL), we can't build circuits anyway, so
|
* descriptors. If (rs==NULL), we can't build circuits anyway, so
|
||||||
* there's no point in falling back to the authorities in this case. */
|
* there's no point in falling back to the authorities in this case. */
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (rs) {
|
if (rs) {
|
||||||
const dir_indirection_t indirection =
|
const dir_indirection_t indirection =
|
||||||
|
|
Loading…
Add table
Reference in a new issue