aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection.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/connection.c
parent6acf0ac2851fb95953edea9c231d82f487f28c3d (diff)
parentfa3c23773944788125db2f67bcb048376c17fec9 (diff)
downloadtor-7f50af116f2497a73fe9113e814a5765047cf3ca.tar
tor-7f50af116f2497a73fe9113e814a5765047cf3ca.tar.gz
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/connection.c')
-rw-r--r--src/or/connection.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index 2cc3d7486..358a4eed1 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -1145,6 +1145,7 @@ connection_listener_new(const struct sockaddr *listensockaddr,
lis_conn->use_cached_ipv4_answers = port_cfg->use_cached_ipv4_answers;
lis_conn->use_cached_ipv6_answers = port_cfg->use_cached_ipv6_answers;
lis_conn->prefer_ipv6_virtaddr = port_cfg->prefer_ipv6_virtaddr;
+ lis_conn->socks_prefer_no_auth = port_cfg->socks_prefer_no_auth;
if (connection_add(conn) < 0) { /* no space, forget it */
log_warn(LD_NET,"connection_add for listener failed. Giving up.");
@@ -1325,6 +1326,11 @@ connection_handle_listener_read(connection_t *conn, int new_type)
newconn->port = port;
newconn->address = tor_dup_addr(&addr);
+ if (new_type == CONN_TYPE_AP) {
+ TO_ENTRY_CONN(newconn)->socks_request->socks_prefer_no_auth =
+ TO_LISTENER_CONN(conn)->socks_prefer_no_auth;
+ }
+
} else if (conn->socket_family == AF_UNIX) {
/* For now only control ports can be Unix domain sockets
* and listeners at the same time */