[or-cvs] Add opt hibernating; fix bug 78

Nick Mathewson nickm at seul.org
Tue Mar 22 06:08:30 UTC 2005


Update of /home/or/cvsroot/tor/src/or
In directory moria.mit.edu:/tmp/cvs-serv17067/src/or

Modified Files:
	router.c 
Log Message:
Add opt hibernating; fix bug 78

Index: router.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/router.c,v
retrieving revision 1.156
retrieving revision 1.157
diff -u -d -r1.156 -r1.157
--- router.c	22 Mar 2005 00:42:38 -0000	1.156
+++ router.c	22 Mar 2005 06:08:28 -0000	1.157
@@ -812,7 +812,7 @@
                     "opt uptime %ld\n"
                     "bandwidth %d %d %d\n"
                     "onion-key\n%s"
-                    "signing-key\n%s%s%s",
+                    "signing-key\n%s%s%s%s",
     router->nickname,
     router->address,
     router->or_port,
@@ -825,7 +825,8 @@
     (int) router->bandwidthburst,
     (int) router->bandwidthcapacity,
     onion_pkey, identity_pkey,
-    family_line, bandwidth_usage);
+    family_line, bandwidth_usage,
+    we_are_hibernating() ? "opt hibernating 1\n" : "");
   tor_free(family_line);
   tor_free(onion_pkey);
   tor_free(identity_pkey);



More information about the tor-commits mailing list