aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection_edge.c
diff options
context:
space:
mode:
authorJacob Appelbaum <jacob@appelbaum.net>2009-08-08 19:15:22 -0700
committerJacob Appelbaum <jacob@appelbaum.net>2009-08-08 19:15:22 -0700
commit33762b529694f58d7640ebcbef1bc0f940419c89 (patch)
tree14eee546197e1a6406e9b292d49c492e5346f64f /src/or/connection_edge.c
parent07d95440ef3430f74dfe0fa68f7d84eec9a17f3e (diff)
downloadtor-33762b529694f58d7640ebcbef1bc0f940419c89.tar.gz
tor-33762b529694f58d7640ebcbef1bc0f940419c89.zip
LetsKillNoConnect removes support for .noconnect
This is a patch to remove support for .noconnect. We are removing .noconnect because of a talk at Defcon 17 by Gregory Fleischer.
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r--src/or/connection_edge.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 79496f7a9b..04fffd9f57 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -1875,14 +1875,6 @@ connection_ap_handshake_process_socks(edge_connection_t *conn)
return -1;
} /* else socks handshake is done, continue processing */
- if (hostname_is_noconnect_address(socks->address))
- {
- control_event_stream_status(conn, STREAM_EVENT_NEW, 0);
- control_event_stream_status(conn, STREAM_EVENT_CLOSED, 0);
- connection_mark_unattached_ap(conn, END_STREAM_REASON_DONE);
- return -1;
- }
-
if (SOCKS_COMMAND_IS_CONNECT(socks->command))
control_event_stream_status(conn, STREAM_EVENT_NEW, 0);
else
@@ -2944,11 +2936,3 @@ failed:
return BAD_HOSTNAME;
}
-/** Check if the address is of the form "y.noconnect"
- */
-int
-hostname_is_noconnect_address(const char *address)
-{
- return ! strcasecmpend(address, ".noconnect");
-}
-