[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [atlas/master] Flag relays that do not use recommended software versions
commit 5f469d1f60cfe3ec2d7c2a37590dcb0d3cb733ae
Author: Raphael Bergmann <raphael@xxxxxxxxxx>
Date: Wed Mar 1 18:57:17 2017 +0100
Flag relays that do not use recommended software versions
---
img/flags/not_recommended_16x16.png | Bin 0 -> 323 bytes
js/models/relay.js | 7 +++++++
2 files changed, 7 insertions(+)
diff --git a/img/flags/not_recommended_16x16.png b/img/flags/not_recommended_16x16.png
new file mode 100644
index 0000000..b8a3634
Binary files /dev/null and b/img/flags/not_recommended_16x16.png differ
diff --git a/js/models/relay.js b/js/models/relay.js
index 6319e0a..c69288a 100644
--- a/js/models/relay.js
+++ b/js/models/relay.js
@@ -55,6 +55,9 @@ define([
if (flag == "Exit") {
output.push([flag,"cloud_download_"+size[0], "This relay is more useful for building general-purpose exit circuits than for relay circuits."]);
}
+ if (flag == "Not Recommended") {
+ output.push([flag,"not_recommended_"+size[0], "This relay is running a software version that is not recommended by the directory authorities."]);
+ }
});
return output;
},
@@ -150,6 +153,7 @@ define([
//console.log(data);
relay.contact = relay.contact ? relay.contact : 'undefined';
relay.platform = relay.platform ? relay.platform : null;
+ relay.recommended_version = (typeof relay.recommended_version !== 'undefined') ? relay.recommended_version : null;
relay.nickname = relay.nickname ? relay.nickname : "Unnamed";
relay.dir_address = relay.dir_address ? relay.dir_address : null;
relay.exit_policy = relay.exit_policy ? relay.exit_policy : null;
@@ -190,6 +194,9 @@ define([
relay.fingerprint = relay.hashed_fingerprint ? relay.hashed_fingerprint : relay.fingerprint;
model.set({badexit: false});
var size = ['16x16', '14x16', '8x16'];
+ if (relay.recommended_version===false) {
+ relay.flags.push("Not Recommended");
+ }
relay.flags = model.parseflags(relay.flags, size);
model.set(relay, options);
success(model, relay);
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits