summaryrefslogtreecommitdiff
path: root/src/or/router.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/router.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/router.c')
-rw-r--r--src/or/router.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 331ec7b090..785851682d 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -374,9 +374,9 @@ int init_keys(void) {
*/
/** Whether we can reach our ORPort from the outside. */
-static int can_reach_or_port = 1;
+static int can_reach_or_port = 0;
/** Whether we can reach our DirPort from the outside. */
-static int can_reach_dir_port = 1;
+static int can_reach_dir_port = 0;
void consider_testing_reachability(void) {
routerinfo_t *me = router_get_my_routerinfo();
@@ -407,8 +407,8 @@ void router_dirport_found_reachable(void) {
/** Our router has just moved to a new IP. Reset stats. */
void server_has_changed_ip(void) {
stats_n_seconds_working = 0;
-// can_reach_or_port = 0;
-// can_reach_dir_port = 0;
+ can_reach_or_port = 0;
+ can_reach_dir_port = 0;
mark_my_descriptor_dirty();
}