Fix GETINFO config-text for private networks
commit34e47d1052bdb76780a4dedbbce613972c896bad
authorSebastian Hahn <sebastian@torproject.org>
Sat, 26 Feb 2011 08:06:09 +0000 (26 09:06 +0100)
committerSebastian Hahn <sebastian@torproject.org>
Sat, 26 Feb 2011 08:11:41 +0000 (26 09:11 +0100)
tree81bffe49ca33eea609c18b7b3d243af39950dfd8
parentaa178aae03048caf24ce5df4b2d643c7e7afdc7b
Fix GETINFO config-text for private networks

In private networks, the defaults for some options are changed. This
means that in options_validate(), where we're testing that the defaults
are what we think they are, we fail. Use a workaround by setting a
hidden configuration option _UsingTestingTorNetwork when we have altered
the configuration this way, so that options_validate() can do the right
thing.

Fixes bug 2250, bugfix on 0.2.1.2-alpha (the version introducing private
network options).
src/or/config.c
src/or/or.h