diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-06-14 16:11:37 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-06-14 16:11:37 +0000 |
commit | 96bf9cd4c5923882580ab6d5a6fb4dbd9518e4d5 (patch) | |
tree | bdf01d5abb6f6b8added5e1fcaf4cc45c2962959 /src/or/config.c | |
parent | 0831cc3dbcb89fc356c69ced54374aaebbb4fd39 (diff) | |
download | tor-96bf9cd4c5923882580ab6d5a6fb4dbd9518e4d5.tar.gz tor-96bf9cd4c5923882580ab6d5a6fb4dbd9518e4d5.zip |
Comments and doc tweaks on Karsten's testing-dir-networks patch
svn:r15254
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c index 0cd40a3985..b8669e9ac8 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -3382,6 +3382,8 @@ options_validate(or_options_t *old_options, or_options_t *options, "a non-default set of DirServers."); } + /*XXXX021 checking for defaults manually like this is a bit fragile.*/ + /* Keep changes to hard-coded values synchronous to man page and default * values table. */ if (options->V3AuthInitialVotingInterval != 30*60 && @@ -3891,6 +3893,12 @@ options_init_from_string(const char *cf, * for a list of dependent config options, re-initialize newoptions * with the new defaults, and assign all options to it second time. */ if (newoptions->TestingTorNetwork) { + /* XXXX021 this is a bit of a kludge. perhaps there's a better way to do + * this? We could, for example, make the parsing algorithm do two passes + * over the configuration. If it finds any "suite" options like + * TestingTorNetwork, it could change the defaults before its second pass. + * Not urgent so long as this seems to work, but at any sign of trouble, + * let's clean it up. -NM */ /* Change defaults. */ int i; |