]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commit
tor.cgi: look up Tor relay country codes using libloc
authorPeter Müller <peter.mueller@ipfire.org>
Tue, 3 Nov 2020 11:50:18 +0000 (12:50 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 5 Nov 2020 23:31:14 +0000 (23:31 +0000)
commitc63ea6cf49daacd51a77f9c2bbcf9856f686a0f7
treea0e25e74ba6b6437271714b96c77d433776ea8ac
parentf717db9172b631571cfcd9333de45c110b772ff6
tor.cgi: look up Tor relay country codes using libloc

Tor provides a function to resolve a relay's IP address into a country
code by taking advantage of a (heavily outdated) GeoIP database shipped
with it.

We should consequently use libloc for doing this, since it can be
confusing if those results differ from active connections in the
connection tracking CGI (where we _use_ libloc) and such tasks are why
we invented libloc in the first place. :-)

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/tor.cgi