aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-08-17 11:42:22 +0000
committerRoger Dingledine <arma@torproject.org>2004-08-17 11:42:22 +0000
commit6cf09a5dc00e6bec528565075be5924c86d9486c (patch)
tree165e363aef9760fcf74941deed77f412dd29a752 /src
parent92a44fddb1d12d59cecdb86df9380c62fb6bd305 (diff)
downloadtor-6cf09a5dc00e6bec528565075be5924c86d9486c.tar
tor-6cf09a5dc00e6bec528565075be5924c86d9486c.tar.gz
people with no torrc allow unverified middle/rendezvous nodes by default
svn:r2259
Diffstat (limited to 'src')
-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 3d1c89e2b..60f1a42c6 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -439,6 +439,10 @@ static int config_assign_defaults(or_options_t *options) {
/* set them up as a client only */
options->SocksPort = 9050;
+ options->AllowUnverifiedNodes = smartlist_create();
+ smartlist_add(options->AllowUnverifiedNodes, "middle");
+ smartlist_add(options->AllowUnverifiedNodes, "rendezvous");
+
config_free_lines(options->ExitPolicy);
options->ExitPolicy = config_line_prepend(NULL, "ExitPolicy", "reject *:*");