commit 1e46952f36c5fb83d0f3e60e90951bb9e8ea8d77 Author: Nick Mathewson nickm@torproject.org Date: Thu Nov 15 13:00:19 2012 -0500
Set IPv4/IPv6 flags correctly when being a SOCKS client --- src/or/connection.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/or/connection.c b/src/or/connection.c index ecfb8a9..f9d8a6d 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -1115,7 +1115,7 @@ connection_listener_new(const struct sockaddr *listensockaddr, lis_conn->session_group = global_next_session_group--; } } - if (type == CONN_TYPE_AP) { + if (type == CONN_TYPE_AP_LISTENER) { lis_conn->socks_ipv4_traffic = port_cfg->ipv4_traffic; lis_conn->socks_ipv6_traffic = port_cfg->ipv6_traffic; lis_conn->socks_prefer_ipv6 = port_cfg->prefer_ipv6;