summaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-04-11 01:39:26 -0400
committerNick Mathewson <nickm@torproject.org>2013-04-11 01:39:55 -0400
commit7f50af116f2497a73fe9113e814a5765047cf3ca (patch)
tree8b31ff3c061a6978afb5438e52dc4b74124cf1c8 /src/or/config.c
parent6acf0ac2851fb95953edea9c231d82f487f28c3d (diff)
parentfa3c23773944788125db2f67bcb048376c17fec9 (diff)
downloadtor-7f50af116f2497a73fe9113e814a5765047cf3ca.tar.gz
tor-7f50af116f2497a73fe9113e814a5765047cf3ca.zip
Merge remote-tracking branch 'public/bug8117_023' into maint-0.2.4
Conflicts: doc/tor.1.txt src/or/config.c src/or/connection.c
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c
index ffa984bcda..20a3c20fb9 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -5009,6 +5009,7 @@ parse_port_config(smartlist_t *out,
int port;
int sessiongroup = SESSION_GROUP_UNSET;
unsigned isolation = ISO_DEFAULT;
+ int prefer_no_auth = 0;
char *addrport;
uint16_t ptmp=0;
@@ -5176,6 +5177,9 @@ parse_port_config(smartlist_t *out,
} else if (!strcasecmp(elt, "PreferIPv6Automap")) {
prefer_ipv6_automap = ! no;
continue;
+ } else if (!strcasecmp(elt, "PreferSOCKSNoAuth")) {
+ prefer_no_auth = ! no;
+ continue;
}
if (!strcasecmpend(elt, "s"))
@@ -5235,6 +5239,9 @@ parse_port_config(smartlist_t *out,
cfg->use_cached_ipv4_answers = use_cached_ipv4;
cfg->use_cached_ipv6_answers = use_cached_ipv6;
cfg->prefer_ipv6_virtaddr = prefer_ipv6_automap;
+ cfg->socks_prefer_no_auth = prefer_no_auth;
+ if (! (isolation & ISO_SOCKSAUTH))
+ cfg->socks_prefer_no_auth = 1;
smartlist_add(out, cfg);
}