diff options
author | Nick Mathewson <nickm@torproject.org> | 2021-03-12 08:40:26 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2021-03-17 11:53:09 -0400 |
commit | 066748c9cde058db4c12dec0675c036ac11d7e84 (patch) | |
tree | 611902268bbf51261e86cb9454cd23b4be652a87 /src/app/config/config.c | |
parent | e8d224dfb14a73e6b47ab09def56217f66a2ea46 (diff) | |
download | tor-066748c9cde058db4c12dec0675c036ac11d7e84.tar.gz tor-066748c9cde058db4c12dec0675c036ac11d7e84.zip |
Add a DormantTimeoutEnabled to disable dormant mode entirely
(If you need to do this in an older version you can just set
DormantClientTimeout to something huge.)
Closes #40228.
Diffstat (limited to 'src/app/config/config.c')
-rw-r--r-- | src/app/config/config.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/app/config/config.c b/src/app/config/config.c index fa74907b3d..5b36554851 100644 --- a/src/app/config/config.c +++ b/src/app/config/config.c @@ -424,8 +424,9 @@ static const config_var_t option_vars_[] = { OBSOLETE("DynamicDHGroups"), VPORT(DNSPort), OBSOLETE("DNSListenAddress"), - V(DormantClientTimeout, INTERVAL, "24 hours"), - V(DormantTimeoutDisabledByIdleStreams, BOOL, "1"), + V(DormantClientTimeout, INTERVAL, "24 hours"), + V(DormantTimeoutEnabled, BOOL, "1"), + V(DormantTimeoutDisabledByIdleStreams, BOOL, "1"), V(DormantOnFirstStartup, BOOL, "0"), V(DormantCanceledByStartup, BOOL, "0"), /* DoS circuit creation options. */ |