List exit fingerprints when available

parent f9ae99a4
Pipeline #75 passed with stage
in 4 minutes and 1 second
......@@ -101,10 +101,14 @@ router.get("/:ip", (req: Request, res: Response, next: NextFunction) => {
}
torRelay.isRelay = await dnsbl.lookup(ipAddress, 'tor.dan.me.uk', dnsblConfiguration);
torRelay.isExit = await dnsbl.lookup(ipAddress, 'torexit.dan.me.uk', dnsblConfiguration);
torRelay.isExit = await dnsbl.lookup(ipAddress, 'dnsel.torproject.org', dnsblConfiguration);
function getRelayFingerprints(ipAddress) {
return dnsbl.lookup(ipAddress, `dnsel.torproject.org`, dnsblConfigurationWithTxt);
}
if(torRelay.isRelay) {
// torRelay.fingerprints = await getRelayFingerprints(ipAddress);
torRelay.fingerprints = await getRelayFingerprints(ipAddress);
}
res.render("ip/show.twig", {
......
......@@ -29,6 +29,7 @@
<li><a href="/docs/tor-relay-list/">Tor Relay List in JSON format</a>
(based on <a href="https://www.dan.me.uk/tornodes">dan.me.uk</a>'s data)</li>
<li><a href="https://metrics.torproject.org/onionoo.html">Onionoo</a></li>
<li><a href="https://lists.torproject.org/pipermail/tor-project/2020-March/002759.html">Tor Project DNSBL list</a></li>
</ul>
<h3>Speedtest.net server data</h3>
......
......@@ -70,9 +70,13 @@
{% else %}
Non-exit
{% endif %}
{# {% for relay in torRelay.isRelay.txt %}
{{ relay.toString() | split("/F:")[0] }}--END<br />
{% endfor %} #}
{# Fingerprints #}
{% if torRelay.fingerprints.txt %}
({% for fingerprint in torRelay.fingerprints.txt %}{#
#}<a href="/tor-relay/{{ fingerprint }}">{{ fingerprint }}</a>{#
#}{% if not loop.last %}, {% endif %}{#
#}{% endfor %})
{% endif %}
{% else %}
false
{% endif %}
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment