diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-06-21 11:11:48 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-07-24 15:21:56 -0400 |
commit | f306d12b58a9447076b961da072061f65830692c (patch) | |
tree | f441c46ca462be05e175e067da86d2e740afe3f0 /src/app/config/config.h | |
parent | f3330d2be3de287d4b15bd4d9b0e86fab3ffb9fd (diff) | |
download | tor-f306d12b58a9447076b961da072061f65830692c.tar.gz tor-f306d12b58a9447076b961da072061f65830692c.zip |
Refactor handling of TestingTorNetwork
Previously, when TestingTorNetwork was set, we would manually adjust
the initvalue members of a bunch of other config_var_t, and then
re-run the early parts or parsing the options.
Now we treat the initvalue fields as immutable, but instead assign
to them in options_init(), as early as possible. Rather than
re-running the early parts of options, we just re-call the
options_init_from_string() function.
This patch de-kludges some of our code pretty handily. I think it
could later handle authorities and fallbacks, but for now I think we
should leave those alone.
Diffstat (limited to 'src/app/config/config.h')
0 files changed, 0 insertions, 0 deletions