]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Set ConnDirectionStatistics back to 0 if not running as relay.
authorrl1987 <rl1987@sdf.lonestar.org>
Mon, 6 Apr 2015 17:09:34 +0000 (20:09 +0300)
committerNick Mathewson <nickm@torproject.org>
Tue, 7 Apr 2015 19:15:28 +0000 (15:15 -0400)
changes/bug15604 [new file with mode: 0644]
src/or/config.c

diff --git a/changes/bug15604 b/changes/bug15604
new file mode 100644 (file)
index 0000000..de29380
--- /dev/null
@@ -0,0 +1,7 @@
+  o Minor bugfixes
+    - Disregard the ConnDirectionStatistics torrc options when Tor is
+      not a relay since in that mode of operation no sensible data is
+      being collected and because Tor might run into measurement hiccups
+      when running as a client for some time, then becoming a relay. Fixes
+      bug 15604; bugfix on 0.2.2.35.
+
index d65d35dfc2d6599f58ad61137c5dc4c5d861f9f3..8319f7ca01661f74b36b2b255722c354782bdc84 100644 (file)
@@ -1736,6 +1736,7 @@ options_act(const or_options_t *old_options)
     if (!public_server_mode(options)) {
       options->CellStatistics = 0;
       options->EntryStatistics = 0;
+      options->ConnDirectionStatistics = 0;
       options->HiddenServiceStatistics = 0;
       options->ExitPortStatistics = 0;
     }