Skip to content

Commit

Permalink
...and use it to make sure we only conclude reachability if
Browse files Browse the repository at this point in the history
we didn't initiate the conn.


svn:r3932
  • Loading branch information
Roger Dingledine committed Mar 31, 2005
1 parent 4a82ac1 commit 4f5192b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/or/circuitbuild.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 4f5192b

Please sign in to comment.