diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-03-12 04:22:01 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-03-12 04:22:01 +0000 |
commit | 115271f65e1b84cea09f0fb401afb123f22b075b (patch) | |
tree | ab148aad2c1d2f5e320011b8507507817e48c918 /src/or/config.c | |
parent | d1f790e9cec42783e47805a8593ca5532a525904 (diff) | |
download | tor-115271f65e1b84cea09f0fb401afb123f22b075b.tar.gz tor-115271f65e1b84cea09f0fb401afb123f22b075b.zip |
Implement the common case of ATTACHSTREAM.
svn:r3751
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c index 1f4e0ffa9e..bea35a199c 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -174,6 +174,7 @@ static config_var_t config_vars[] = { VAR("SysLog", LINELIST_S, OldLogOptions, NULL), OBSOLETE("TrafficShaping"), VAR("User", STRING, User, NULL), + VAR("__ManageConnections", BOOL, ManageConnections, "1"), { NULL, CONFIG_TYPE_OBSOLETE, 0, NULL } }; #undef VAR @@ -1155,6 +1156,9 @@ config_dump_options(or_options_t *options, int minimal) if (config_vars[i].type == CONFIG_TYPE_OBSOLETE || config_vars[i].type == CONFIG_TYPE_LINELIST_S) continue; + /* Don't save 'hidden' control variables. */ + if (!strcmpstart(config_vars[i].name, "__")) + continue; if (minimal && option_is_same(options, defaults, config_vars[i].name)) continue; line = config_get_assigned_option(options, config_vars[i].name); |