mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
hs: Don't enter the HS v3 subsystem without a live consensus
The service needs the latest SRV and set of relays for the best accurate hashring to upload its descriptor to so it needs a live consensus thus don't do anything until we have it. Fixes #23331 Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
parent
f2f1cab2b3
commit
9e900d1db7
@ -2110,7 +2110,8 @@ hs_service_callback(time_t now, const or_options_t *options)
|
|||||||
|
|
||||||
/* We need to at least be able to build circuits and that we actually have
|
/* We need to at least be able to build circuits and that we actually have
|
||||||
* a working network. */
|
* a working network. */
|
||||||
if (!have_completed_a_circuit() || net_is_disabled()) {
|
if (!have_completed_a_circuit() || net_is_disabled() ||
|
||||||
|
networkstatus_get_live_consensus(now) == NULL) {
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user