[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [atlas/master] Adds Onionoo's exit_addresses field (#22147)
commit e565a2ea1952901b95ed93c3536652378493a5d8
Author: Iain R. Learmonth <irl@xxxxxxxx>
Date: Tue Nov 14 15:19:11 2017 +0000
Adds Onionoo's exit_addresses field (#22147)
---
js/models/relay.js | 1 +
templates/details/router.html | 3 +++
2 files changed, 4 insertions(+)
diff --git a/js/models/relay.js b/js/models/relay.js
index 4e0db34..989f349 100644
--- a/js/models/relay.js
+++ b/js/models/relay.js
@@ -197,6 +197,7 @@ define([
relay.or_address = relay.or_addresses ? relay.or_addresses[0].split(":")[0] : null;
relay.or_port = relay.or_addresses ? relay.or_addresses[0].split(":")[1] : 0;
relay.dir_port = relay.dir_address ? relay.dir_address.split(":")[1] : 0;
+ relay.exit_addresses = relay.exit_addresses ? relay.exit_addresses : null;
relay.host_name = relay.host_name ? relay.host_name : null;
relay.country = relay.country ? relay.country.toLowerCase() : null;
relay.countryname = relay.country ? CountryCodes[relay.country] : null;
diff --git a/templates/details/router.html b/templates/details/router.html
index 668c1e9..2d9aa2b 100644
--- a/templates/details/router.html
+++ b/templates/details/router.html
@@ -29,6 +29,9 @@
<dt><span class="tip" title="Address and port where the relay listens for directory requests.">Dir Address</span></dt>
<dd><%= relay.get('dir_address') ? relay.get('dir_address') : 'none' %></dd>
+ <dt><span class="tip" title="Addresses that the relay used to exit to the Internet in the past 24 hours. <em>Only lists addresses that are different from the OR addresses.</em>">Exit Addresses</span></dt>
+ <dd><%= relay.get('exit_addresses') ? relay.get('exit_addresses') : 'none' %></dd>
+
<dt>
<span class="tip" title="Bandwidth that the relay is willing and able to provide in bytes per second.">Advertised Bandwidth</span>
</dt>
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits