commit a8dca0355206dd6dc19343b1645a65a2a75bec31 Author: Philipp Winter phw@torproject.org Date: Tue Jan 27 14:25:56 2015 +0100
If no IPv6 exit policy, explicitly mention that.
Otherwise, it's easy to confuse the header with the field below.
This should fix https://bugs.torproject.org/14328. --- templates/details/router.html | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/templates/details/router.html b/templates/details/router.html index 907f17d..58d4daf 100644 --- a/templates/details/router.html +++ b/templates/details/router.html @@ -47,6 +47,9 @@ <% if (relay.get('exit_policy_v6_summary') && ('reject' in relay.get('exit_policy_v6_summary'))) { %> <pre class="pre-scrollable">reject<% _.each(relay.get('exit_policy_v6_summary')['reject'], function(ports) { %><br> <%= $.trim(ports) %><% });} %></pre> + <% if (relay.get('exit_policy_v6_summary') == null) { %> + <pre class="pre-scrollable">None defined.</pre> + <% } %> </dd> <dt><span class="tip" data-content="Policy of exit connections that the relay is going to accept or reject." data-original-title="Exit policy">Exit Policy</span></dt> <dd>
tor-commits@lists.torproject.org