summaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-03-15 01:44:46 +0000
committerRoger Dingledine <arma@torproject.org>2005-03-15 01:44:46 +0000
commit229761465c92399ea20317370b847c287345e83d (patch)
treec1d2da758a9e7cdd5a0b85bddc09394a99d90346 /src/or/circuitbuild.c
parent932252f9b4216350e6cd7b26639b6713981c84ee (diff)
downloadtor-229761465c92399ea20317370b847c287345e83d.tar.gz
tor-229761465c92399ea20317370b847c287345e83d.zip
re-enable reachability testing stuff.
also, consider your ORPort reachable after you've processed a create cell from any non-local address. svn:r3763
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r--src/or/circuitbuild.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index ddc40559e3..83fc795862 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -731,6 +731,13 @@ int onionskin_answer(circuit_t *circ, unsigned char *payload, unsigned char *key
connection_or_write_cell_to_buf(&cell, circ->p_conn);
log_fn(LOG_DEBUG,"Finished sending 'created' cell.");
+ if (!is_local_IP(circ->p_conn->addr)) {
+ /* record that we could process create cells; presumably this means
+ that create cells can reach us too. */
+ log_fn(LOG_NOTICE,"Your ORPort is reachable from the outside. Excellent.");
+ router_orport_found_reachable();
+ }
+
return 0;
}