Add some points to make it easy to turn off v3 support

This commit is contained in:
Nick Mathewson
2011-10-10 23:12:29 -04:00
parent cc07b5a129
commit 8af0cfc10d
2 changed files with 16 additions and 0 deletions
+7
View File
@@ -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");