aboutsummaryrefslogtreecommitdiff
path: root/src/or/relay.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-08-10 09:01:37 +0000
committerNick Mathewson <nickm@torproject.org>2006-08-10 09:01:37 +0000
commit5cff4164a08af2a869e5e85aa6d359b865eee9aa (patch)
treee529cd925b0c3634b512bf638e9edb31dbde22f2 /src/or/relay.c
parent8cbd03fdaf3c138a2ca41b41c995643146fdac94 (diff)
downloadtor-5cff4164a08af2a869e5e85aa6d359b865eee9aa.tar.gz
tor-5cff4164a08af2a869e5e85aa6d359b865eee9aa.zip
r7299@Kushana: nickm | 2006-08-10 01:08:58 -0700
Patch from Tup to add support for transparent AP connections: this basically bundles the functionality of trans-proxy-tor into the tor mainline. Now hosts with compliant pf/netfilter implementations can redirect TCP connections straight to Tor without diverting through SOCKS. svn:r7007
Diffstat (limited to 'src/or/relay.c')
-rw-r--r--src/or/relay.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/relay.c b/src/or/relay.c
index f7eee2917b..666cd891a1 100644
--- a/src/or/relay.c
+++ b/src/or/relay.c
@@ -845,7 +845,9 @@ connection_edge_process_relay_cell_not_open(
conn->chosen_exit_name, ttl);
}
circuit_log_path(LOG_INFO,LD_APP,TO_ORIGIN_CIRCUIT(circ));
- connection_ap_handshake_socks_reply(conn, NULL, 0, SOCKS5_SUCCEEDED);
+ /* don't send a socks reply to transparent conns */
+ if (!conn->socks_request->has_finished)
+ connection_ap_handshake_socks_reply(conn, NULL, 0, SOCKS5_SUCCEEDED);
/* handle anything that might have queued */
if (connection_edge_package_raw_inbuf(conn, 1) < 0) {
/* (We already sent an end cell if possible) */