diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-12-04 12:07:23 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-12-04 12:08:24 -0500 |
commit | 4f558843151f0c49c077d3d9a1cd8a187904a024 (patch) | |
tree | 2dd9994fd527fc219d099d491dba2e4491009362 /src/app | |
parent | b25b8150c282c28d3fa23330891fda7adbbfe584 (diff) | |
download | tor-4f558843151f0c49c077d3d9a1cd8a187904a024.tar.gz tor-4f558843151f0c49c077d3d9a1cd8a187904a024.zip |
Add an option to start tor in dormant mode for the first time.
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/config/config.c | 1 | ||||
-rw-r--r-- | src/app/config/or_options_st.h | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/app/config/config.c b/src/app/config/config.c index d40e362b32..dcefa3d6a4 100644 --- a/src/app/config/config.c +++ b/src/app/config/config.c @@ -392,6 +392,7 @@ static config_var_t option_vars_[] = { OBSOLETE("DNSListenAddress"), V(DormantClientTimeout, INTERVAL, "24 hours"), V(DormantTimeoutDisabledByIdleStreams, BOOL, "1"), + V(DormantOnFirstStartup, BOOL, "0"), /* DoS circuit creation options. */ V(DoSCircuitCreationEnabled, AUTOBOOL, "auto"), V(DoSCircuitCreationMinConnections, UINT, "0"), diff --git a/src/app/config/or_options_st.h b/src/app/config/or_options_st.h index 9065248a9c..c2bc1079a5 100644 --- a/src/app/config/or_options_st.h +++ b/src/app/config/or_options_st.h @@ -1085,6 +1085,10 @@ struct or_options_t { * from becoming dormant. **/ int DormantTimeoutDisabledByIdleStreams; + + /** Boolean: true if Tor should be dormant the first time it starts with + * a datadirectory; false otherwise. */ + int DormantOnFirstStartup; }; #endif |