diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-11-28 11:09:37 -0500 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2013-03-10 20:31:53 -0400 |
commit | e4614d30e58007be1d44613d039891b6f131f50f (patch) | |
tree | c3fb910f66e84dd5c576f8de5bf4ad6e72a02e8b /src/or/or.h | |
parent | 301faf281391698e44eb3a8d400b477716a74fd4 (diff) | |
download | tor-e4614d30e58007be1d44613d039891b6f131f50f.tar.gz tor-e4614d30e58007be1d44613d039891b6f131f50f.zip |
Add a DisableV2DirectoryInfo_ option to 404 all v2 ns requests
I have no idea whether b0rken clients will DoS the network if the v2
authorities all turn this on or not. It's experimental. See #6783 for
a description of how to test it more or less safely, and please be
careful!
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h index 45eb4673ce..0f5dbd6ad5 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -3999,6 +3999,16 @@ typedef struct { /** Fraction: */ double PathsNeededToBuildCircuits; + + /** Do we serve v2 directory info at all? This is a temporary option, since + * we'd like to disable v2 directory serving entirely, but we need a way to + * make it temporarily disableable, in order to do fast testing and be + * able to turn it back on if it turns out to be non-workable. + * + * XXXX024 Don't actually leave this in. + */ + int DisableV2DirectoryInfo_; + } or_options_t; /** Persistent state for an onion router, as saved to disk. */ |