]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Revert "Disable (Cell,DirReq,Entry,ExitPort)Statistics on bridges"
authorNick Mathewson <nickm@torproject.org>
Tue, 5 Jun 2012 14:47:05 +0000 (10:47 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 5 Jun 2012 14:47:05 +0000 (10:47 -0400)
This reverts commit 981e896dd2eaf69798bb503c271306ee779dd6d2.

Apparently Karsten still needs DirReqStatistics for bridges; see

changes/bug5824 [deleted file]
src/or/config.c

diff --git a/changes/bug5824 b/changes/bug5824
deleted file mode 100644 (file)
index a75e8ed..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-  o Minor bugfixes:
-    - Bridges now never collect statistics that were designed for
-      relays. Fix for bug 5824; bugfix on 0.2.1.17-rc.
index 03186bf010c02083c78cb4f309b104c0b4b40cd2..090d96c155cec728daad2f845d225dd3ab9e53ba 100644 (file)
@@ -1703,9 +1703,8 @@ options_act(const or_options_t *old_options)
     time_t now = time(NULL);
     int print_notice = 0;
 
-    /* If we aren't acting as a server, or we are a bridge, we can't collect
-     * stats anyway. */
-    if (!public_server_mode(options)) {
+    /* If we aren't acting as a server, we can't collect stats anyway. */
+    if (!server_mode(options)) {
       options->CellStatistics = 0;
       options->DirReqStatistics = 0;
       options->EntryStatistics = 0;