diff options
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c index f1fea13e58..f7a5745262 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -162,6 +162,7 @@ static config_var_t _option_vars[] = { V(BridgePassword, STRING, NULL), V(BridgeRecordUsageByCountry, BOOL, "1"), V(BridgeRelay, BOOL, "0"), + V(CellStatistics, BOOL, "0"), V(CircuitBuildTimeout, INTERVAL, "1 minute"), V(CircuitIdleTimeout, INTERVAL, "1 hour"), V(ClientDNSRejectInternalAddresses, BOOL,"1"), @@ -1395,6 +1396,16 @@ options_act(or_options_t *old_options) log_warn(LD_CONFIG, "ExitPortStatistics enabled, but Tor was built " "without port statistics support."); #endif +#ifdef ENABLE_BUFFER_STATS + if (options->CellStatistics) + log_notice(LD_CONFIG, "Configured to measure cell statistics. Look " + "for the buffer-stats file that will first be written to " + "the data directory in 24 hours from now."); +#else + if (options->CellStatistics) + log_warn(LD_CONFIG, "CellStatistics enabled, but Tor was built " + "without cell statistics support."); +#endif /* Check if we need to parse and add the EntryNodes config option. */ if (options->EntryNodes && (!old_options || |