[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [atlas/master] Adds DNS names to relay details pages
commit 6a45da633086120a6b8083404f3aefb7dc585b45
Author: Iain R. Learmonth <irl@xxxxxxxx>
Date: Thu Sep 14 11:37:51 2017 +0100
Adds DNS names to relay details pages
---
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 5167ca8..62b8d21 100644
--- a/js/models/relay.js
+++ b/js/models/relay.js
@@ -167,6 +167,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.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;
relay.first_seen = relay.first_seen ? relay.first_seen : null;
diff --git a/templates/details/router.html b/templates/details/router.html
index 467b606..a472a50 100644
--- a/templates/details/router.html
+++ b/templates/details/router.html
@@ -120,6 +120,9 @@
<%=propertyCount==0?'none':''%>
</dd>
+ <dt><span class="tip" title="The DNS name for the relay as found by performing a reverse lookup on its first IP address.">DNS Name</span></dt>
+ <dd><% if (relay.get('host_name')) { %><%= relay.get('host_name') %><% } else { %>No PTR record found<% } %></dd>
+
<dt><span class="tip" title="Country as found in a GeoIP database by resolving the relay's first onion-routing address.">Country</span></dt>
<dd><% if (relay.get('country')) { %><img class="inline country" title="<%= relay.get('countryname') %>" alt="" src="img/cc/<%= relay.get('country') %>.png"/> <%= relay.get('countryname') %><% } else { %>Unknown<% } %></dd>
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits