[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] disable the reachability detection stuff in cvs, so people ...



Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/or

Modified Files:
	router.c 
Log Message:
disable the reachability detection stuff in cvs, so people can
run servers from cvs while i'm gone.


Index: router.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/router.c,v
retrieving revision 1.149
retrieving revision 1.150
diff -u -d -r1.149 -r1.150
--- router.c	27 Feb 2005 09:47:01 -0000	1.149
+++ router.c	28 Feb 2005 09:39:12 -0000	1.150
@@ -374,9 +374,9 @@
  */
 
 /** Whether we can reach our ORPort from the outside. */
-static int can_reach_or_port = 0;
+static int can_reach_or_port = 1;
 /** Whether we can reach our DirPort from the outside. */
-static int can_reach_dir_port = 0;
+static int can_reach_dir_port = 1;
 
 void consider_testing_reachability(void) {
   routerinfo_t *me = router_get_my_routerinfo();
@@ -407,8 +407,8 @@
 /** 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();
 }