mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Implement an DormantCanceledByStartup option
Closes ticket 29357, and comes with appropriate notions of caution.
This commit is contained in:
@@ -144,6 +144,10 @@ netstatus_load_from_state(const or_state_t *state, time_t now)
|
||||
last_activity = now - 60 * state->MinutesSinceUserActivity;
|
||||
participating_on_network = true;
|
||||
}
|
||||
if (get_options()->DormantCanceledByStartup) {
|
||||
last_activity = now;
|
||||
participating_on_network = true;
|
||||
}
|
||||
reset_user_activity(last_activity);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user