diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-10-10 23:12:29 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-10-10 23:14:32 -0400 |
commit | 8af0cfc10d33186adaa114f215e8fa69af91a84a (patch) | |
tree | 86ef82e04e6322900b280d6526d4af6df1a96fe8 /src/or/command.c | |
parent | cc07b5a12936f0cd8c5791c94f66c20e1929b0ab (diff) | |
download | tor-8af0cfc10d33186adaa114f215e8fa69af91a84a.tar.gz tor-8af0cfc10d33186adaa114f215e8fa69af91a84a.zip |
Add some points to make it easy to turn off v3 support
Diffstat (limited to 'src/or/command.c')
-rw-r--r-- | src/or/command.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/command.c b/src/or/command.c index 738bf35d9c..a511156318 100644 --- a/src/or/command.c +++ b/src/or/command.c @@ -689,6 +689,13 @@ command_process_versions_cell(var_cell_t *cell, or_connection_t *conn) send_chall ? " AUTH_CHALLENGE" : "", send_netinfo ? " NETINFO" : ""); +#ifdef DISABLE_V3_LINKPROTO_SERVERSIDE + if (1) { + connection_mark_for_close(TO_CONN(conn)); + return; + } +#endif + if (send_versions) { if (connection_or_send_versions(conn, 1) < 0) { log_warn(LD_OR, "Couldn't send versions cell"); |