diff options
Diffstat (limited to 'src/or/confparse.c')
-rw-r--r-- | src/or/confparse.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/confparse.c b/src/or/confparse.c index 1706fa85e2..92a66a4b5a 100644 --- a/src/or/confparse.c +++ b/src/or/confparse.c @@ -1159,6 +1159,11 @@ config_dump(const config_format_t *fmt, const void *default_options, config_get_assigned_option(fmt, options, fmt->vars[i].name, 1); for (; line; line = line->next) { + if (!strcmpstart(line->key, "__")) { + /* This check detects "hidden" variables inside LINELIST_V structures. + */ + continue; + } smartlist_add_asprintf(elements, "%s%s %s\n", comment_option ? "# " : "", line->key, line->value); |