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

[tor-commits] [metrics-db/master] Keep conn-bi-direct lines in sanitized bridge descriptors.



commit 14aa8276ce96d4e1cc6cf100ae91c8813066f147
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date:   Thu Mar 8 06:57:14 2012 +0100

    Keep conn-bi-direct lines in sanitized bridge descriptors.
    
    In theory, bridges shouldn't be configured to collect these statistics.
    But in practice, it doesn't hurt to keep the data in sanitized
    descriptors.
---
 .../ernie/db/SanitizedBridgesWriter.java           |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/org/torproject/ernie/db/SanitizedBridgesWriter.java b/src/org/torproject/ernie/db/SanitizedBridgesWriter.java
index 0180052..d70f0ce 100644
--- a/src/org/torproject/ernie/db/SanitizedBridgesWriter.java
+++ b/src/org/torproject/ernie/db/SanitizedBridgesWriter.java
@@ -996,7 +996,8 @@ public class SanitizedBridgesWriter {
             || line.startsWith("read-history ")
             || line.startsWith("geoip-start-time ")
             || line.startsWith("geoip-client-origins ")
-            || line.startsWith("geoip-db-digest ")) {
+            || line.startsWith("geoip-db-digest ")
+            || line.startsWith("conn-bi-direct ")) {
           scrubbed.append(line + "\n");
 
         /* When we reach the signature, we're done. Write the sanitized

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits