diff options
author | Roger Dingledine <arma@torproject.org> | 2006-06-10 00:26:39 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-06-10 00:26:39 +0000 |
commit | 889b8d5bac2f1cd818142317c55689a4304a79ae (patch) | |
tree | faa13b85ab990f53d775a08025680086f331e3b4 /src/or/config.c | |
parent | 1f585987c4b20cc12f789a9943abffa5d8205c7b (diff) | |
download | tor-889b8d5bac2f1cd818142317c55689a4304a79ae.tar tor-889b8d5bac2f1cd818142317c55689a4304a79ae.tar.gz |
Add a new config option TestVia, that lets you specify preferred middle
hops to use for testing circuits. Perhaps this will let me debug the
reachability problem better.
svn:r6581
Diffstat (limited to 'src/or/config.c')
-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 a11acb1a7..bcfd258be 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -233,6 +233,7 @@ static config_var_t _option_vars[] = { VAR("StrictExitNodes", BOOL, StrictExitNodes, "0"), VAR("SysLog", LINELIST_S, OldLogOptions, NULL), VAR("TestSocks", BOOL, TestSocks, "0"), + VAR("TestVia", STRING, TestVia, NULL), VAR("TrackHostExits", CSV, TrackHostExits, NULL), VAR("TrackHostExitsExpire",INTERVAL, TrackHostExitsExpire, "30 minutes"), OBSOLETE("TrafficShaping"), @@ -2378,6 +2379,8 @@ options_validate(or_options_t *old_options, or_options_t *options, return -1; if (check_nickname_list(options->RendNodes, "RendExcludeNodes", msg)) return -1; + if (check_nickname_list(options->TestVia, "TestVia", msg)) + return -1; if (check_nickname_list(options->MyFamily, "MyFamily", msg)) return -1; for (cl = options->NodeFamilies; cl; cl = cl->next) { |