mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
5530af675b
We do this to avoid useless outputs but also, in the CI environement, the Python logging package stacktraces with a problem on a socket. The command still works but the logging fails. With the quiet switch, we don't get such stacktrace. Signed-off-by: David Goulet <dgoulet@torproject.org> |
||
---|---|---|
.. | ||
geoip-db-tool | ||
README.geoip | ||
update_and_commit_geoip.sh | ||
update_geoip.sh |
To generate new geoip files, you'll need to install the libloc/"location" tool provided by https://location.ipfire.org/. I personally build it with: ./configure CFLAGS='-g -O2' --disable-perl --without-systemd --prefix=/opt/libloc make make install Then (after adjusting PATH and PYTHONPATH) you can get the latest dump with: location update location dump geoip-dump.txt And transform it into geoip files with cargo run --release -- -i geoip-dump.txt ============================== Note that the current version "0.1.9" of rangemap has a performance bug, making this tool quite slow. Previous versions had a correctness bug that made the output needlessly long. With luck, there will soon be a fast correct rangemap version.