diff options
author | meejah <meejah@meejah.ca> | 2012-03-19 00:00:10 -0600 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-09-10 09:51:31 -0400 |
commit | f43946829ce037462fd9dd852553ccfe86c88d01 (patch) | |
tree | 9856045cf4ebe3cf5a95521f751d740ee1470b8b /src/or | |
parent | 65838f48832df8c5c4333358106e86b5db38899f (diff) | |
download | tor-f43946829ce037462fd9dd852553ccfe86c88d01.tar.gz tor-f43946829ce037462fd9dd852553ccfe86c88d01.zip |
Hide options beginning with "___" from GETINFO config/names
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/config.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c index 6ee1ce00a8..78f86595fc 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -7307,6 +7307,9 @@ getinfo_helper_config(control_connection_t *conn, for (i = 0; _option_vars[i].name; ++i) { const config_var_t *var = &_option_vars[i]; const char *type; + /* don't tell controller about triple-underscore options */ + if (!strncmp(_option_vars[i].name, "___", 3)) + continue; switch (var->type) { case CONFIG_TYPE_STRING: type = "String"; break; case CONFIG_TYPE_FILENAME: type = "Filename"; break; |