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

[tor-commits] [atlas/master] Filters effective family to exclude the relay's fingerprint (Fixes: #25034)



commit 409e410b5c10666c202cd56b2ff42db0c0a8f766
Author: Iain R. Learmonth <irl@xxxxxxxx>
Date:   Wed Feb 14 14:17:25 2018 +0000

    Filters effective family to exclude the relay's fingerprint (Fixes: #25034)
---
 js/models/relay.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/js/models/relay.js b/js/models/relay.js
index cd3078b..cfb6dec 100644
--- a/js/models/relay.js
+++ b/js/models/relay.js
@@ -196,7 +196,8 @@ define([
                     relay.obandwidth = (typeof relay.observed_bandwidth !== 'undefined') ? hrBandwidth(relay.observed_bandwidth) : null;
                     relay.bandwidth = (typeof relay.advertised_bandwidth !== 'undefined') ? relay.advertised_bandwidth : null;
                     relay.bandwidth_hr = (typeof relay.advertised_bandwidth !== 'undefined') ? hrBandwidth(relay.advertised_bandwidth) : null;
-                    relay.effective_family = relay.effective_family ? relay.effective_family : null;
+                    // the filter here is a temporary fix, and can be removed again later if you notice that #25241 is fixed
+                    relay.effective_family = relay.effective_family ? relay.effective_family.filter(function(x){return x !== relay.fingerprint}) : null;
                     relay.alleged_family = relay.alleged_family ? relay.alleged_family : null;
                     if (relay.is_bridge) {
                         var new_addresses = [];



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