diff options
author | Roger Dingledine <arma@torproject.org> | 2005-03-31 07:46:59 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-03-31 07:46:59 +0000 |
commit | 4f5192b2803c70601cda76c36b350f50a02124f0 (patch) | |
tree | 3ffc216b2747d4ef50e3c7d195c67c15028affda /src/or/circuitbuild.c | |
parent | 4a82ac12b8146818cf989bcedb831bf39c8aae3f (diff) | |
download | tor-4f5192b2803c70601cda76c36b350f50a02124f0.tar tor-4f5192b2803c70601cda76c36b350f50a02124f0.tar.gz |
...and use it to make sure we only conclude reachability if
we didn't initiate the conn.
svn:r3932
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r-- | src/or/circuitbuild.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index e60a7eef9..b69f3a370 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -774,9 +774,11 @@ 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. */ + if (!is_local_IP(circ->p_conn->addr) && + tor_tls_is_server(circ->p_conn->tls)) { + /* record that we could process create cells from a non-local conn + * that we didn't initiate; presumably this means that create cells + * can reach us too. */ router_orport_found_reachable(); } |