summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-02-16 15:30:26 -0500
committerNick Mathewson <nickm@torproject.org>2017-02-16 15:30:26 -0500
commitd004b9222e6f07f01666aa2de852fc19e9096a08 (patch)
treefa656c300205511668d653d18e511649ae1b7967
parent31be66ea5ae243644f79d7f8a7d728cd9537c79d (diff)
downloadtor-d004b9222e6f07f01666aa2de852fc19e9096a08.tar.gz
tor-d004b9222e6f07f01666aa2de852fc19e9096a08.zip
The UseCreateFast consensus parameter now defaults to 0.
You can still override it with FastFirstHopPK. But that's deprecated. Closes ticket 21407.
-rw-r--r--changes/bug214074
-rw-r--r--src/or/circuitbuild.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/changes/bug21407 b/changes/bug21407
new file mode 100644
index 0000000000..8d0d917439
--- /dev/null
+++ b/changes/bug21407
@@ -0,0 +1,4 @@
+ o Minor features (defaults, security):
+ - The default value for UseCreateFast is now 0: clients which haven't yet
+ received a consensus document will nonetheless use a proper handshake
+ to talk to their directory servers (when they can). Closes ticket 21407.
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index cd00034395..d688172b6d 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -819,7 +819,7 @@ should_use_create_fast_for_circuit(origin_circuit_t *circ)
}
if (options->FastFirstHopPK == -1) {
/* option is "auto", so look at the consensus. */
- return networkstatus_get_param(NULL, "usecreatefast", 1, 0, 1);
+ return networkstatus_get_param(NULL, "usecreatefast", 0, 0, 1);
}
return options->FastFirstHopPK;