aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_config.c
diff options
context:
space:
mode:
authorGeorge Tankersley <george.tankersley@gmail.com>2015-12-10 22:55:42 -0800
committerGeorge Tankersley <george.tankersley@gmail.com>2016-01-06 11:22:30 -0800
commit3bc45f2628b8f9f979835503b42f6ae103dbd703 (patch)
tree03935c7abed34d55f94d753765343442dcb0cdfc /src/test/test_config.c
parent7660471054e2ee6568ddbbadbd9190f9ca4efb5a (diff)
downloadtor-3bc45f2628b8f9f979835503b42f6ae103dbd703.tar.gz
tor-3bc45f2628b8f9f979835503b42f6ae103dbd703.zip
Add FallbackDir list to GETINFO config/defaults
Diffstat (limited to 'src/test/test_config.c')
-rw-r--r--src/test/test_config.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/test_config.c b/src/test/test_config.c
index 1b9e84dcf5..097fe15adf 100644
--- a/src/test/test_config.c
+++ b/src/test/test_config.c
@@ -3421,9 +3421,11 @@ test_config_default_dir_servers(void *arg)
int trusted_count = 0;
int fallback_count = 0;
+ /* new set of options should stop fallback parsing */
opts = tor_malloc_zero(sizeof(or_options_t));
opts->UseDefaultFallbackDirs = 0;
- consider_adding_dir_servers(opts, opts);
+ /* set old_options to NULL to force dir update */
+ consider_adding_dir_servers(opts, NULL);
trusted_count = smartlist_len(router_get_trusted_dir_servers());
fallback_count = smartlist_len(router_get_fallback_dir_servers());
or_options_free(opts);