mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 13:53:31 +01:00
only print bandwidth lines to the state file if we're being a server.
otherwise this is pointless and probably bad for security. svn:r5704
This commit is contained in:
parent
1d474e14d7
commit
16ee6830b6
@ -677,7 +677,8 @@ rep_hist_update_state(or_state_t *state)
|
||||
tor_snprintf(cp, len-(cp-buf), cp == buf ? U64_FORMAT : ","U64_FORMAT,
|
||||
U64_PRINTF_ARG(b->total_in_period));
|
||||
*s_values = smartlist_create();
|
||||
smartlist_split_string(*s_values, buf, ",", SPLIT_SKIP_SPACE, 0);
|
||||
if (server_mode(get_options()))
|
||||
smartlist_split_string(*s_values, buf, ",", SPLIT_SKIP_SPACE, 0);
|
||||
}
|
||||
tor_free(buf);
|
||||
state->dirty = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user