aboutsummaryrefslogtreecommitdiff
path: root/src/or/command.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2002-07-08 08:59:15 +0000
committerRoger Dingledine <arma@torproject.org>2002-07-08 08:59:15 +0000
commit0a3da3ae37dc048f6079d0e4cffd057d07e13216 (patch)
tree0ca339c217d47f049742c83bac592ebf30dd6b5b /src/or/command.c
parentb86fecbf47c51b9d1fd4fca0f828d84420d111fb (diff)
downloadtor-0a3da3ae37dc048f6079d0e4cffd057d07e13216.tar.gz
tor-0a3da3ae37dc048f6079d0e4cffd057d07e13216.zip
put in the support for 'router twins'
basically, a twin is a router which is different except it shares the same keypair. so in cases where we want to find a "next router" and all we really care is that it can decrypt the next onion layer, then a twin is just as good. we still need to decide how to mark twins in the routerinfo_t and in the routers config file. svn:r30
Diffstat (limited to 'src/or/command.c')
-rw-r--r--src/or/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/command.c b/src/or/command.c
index 6218096773..dfe8edbaa3 100644
--- a/src/or/command.c
+++ b/src/or/command.c
@@ -91,7 +91,7 @@ void command_process_create_cell(cell_t *cell, connection_t *conn) {
}
if(circ->n_addr && circ->n_port) { /* must send create cells to the next router */
- n_conn = connection_get_by_addr_port(circ->n_addr,circ->n_port);
+ n_conn = connection_twin_get_by_addr_port(circ->n_addr,circ->n_port);
if(!n_conn || n_conn->type != CONN_TYPE_OR) {
/* i've disabled making connections through OPs, but it's definitely
* possible here. I'm not sure if it would be a bug or a feature. -RD