aboutsummaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-10-28 23:44:53 +0000
committerNick Mathewson <nickm@torproject.org>2007-10-28 23:44:53 +0000
commitf09d53bbf1ceeb71a028943037190336b69bb3c6 (patch)
tree852f36a6589a6ce89d8c0aa163e53687912e6b00 /src/or/config.c
parent20b108598993ecc2ec420288ebf9b995b519f9db (diff)
downloadtor-f09d53bbf1ceeb71a028943037190336b69bb3c6.tar.gz
tor-f09d53bbf1ceeb71a028943037190336b69bb3c6.zip
r16246@catbus: nickm | 2007-10-28 19:34:58 -0400
Implement a FallbackNetworkstatusFile (default to $prefix/share/tor/fallback-consensus) to that we know about lots of directory servers and routers when we start up the first time. svn:r12259
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 9997bfbe0e..1f9e7b0af6 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -118,6 +118,8 @@ typedef struct config_var_t {
/** An entry for config_vars: "The option <b>name</b> is obsolete." */
#define OBSOLETE(name) { name, CONFIG_TYPE_OBSOLETE, 0, NULL }
+
+
/** Array of configuration options. Until we disallow nonstandard
* abbreviations, order is significant, since the first matching option will
* be chosen first.
@@ -175,6 +177,8 @@ static config_var_t _option_vars[] = {
V(ExitNodes, STRING, NULL),
V(ExitPolicy, LINELIST, NULL),
V(ExitPolicyRejectPrivate, BOOL, "1"),
+ V(FallbackNetworkstatusFile, STRING,
+ DATADIR PATH_SEPARATOR "tor" PATH_SEPARATOR "fallback-consensus"),
V(FascistFirewall, BOOL, "0"),
V(FirewallPorts, CSV, ""),
V(FastFirstHopPK, BOOL, "1"),