[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] and use it to make sure we only conclude reachability if
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] and use it to make sure we only conclude reachability if
- From: arma@xxxxxxxx (Roger Dingledine)
- Date: Thu, 31 Mar 2005 02:47:01 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Thu, 31 Mar 2005 02:47:21 -0500
- Reply-to: or-dev@xxxxxxxxxxxxx
- Sender: owner-or-cvs@xxxxxxxxxxxxx
Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/or
Modified Files:
circuitbuild.c
Log Message:
...and use it to make sure we only conclude reachability if
we didn't initiate the conn.
Index: circuitbuild.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/circuitbuild.c,v
retrieving revision 1.97
retrieving revision 1.98
diff -u -d -r1.97 -r1.98
--- circuitbuild.c 27 Mar 2005 07:18:30 -0000 1.97
+++ circuitbuild.c 31 Mar 2005 07:46:59 -0000 1.98
@@ -774,9 +774,11 @@
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();
}