[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Hide options beginning with "___" from GETINFO config/names
commit f43946829ce037462fd9dd852553ccfe86c88d01
Author: meejah <meejah@xxxxxxxxx>
Date: Mon Mar 19 00:00:10 2012 -0600
Hide options beginning with "___" from GETINFO config/names
---
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 6ee1ce0..78f8659 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;
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits