mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Show liblzma and libzstd versions in tor --library-versions.
See: https://bugs.torproject.org/21662
This commit is contained in:
committed by
Nick Mathewson
parent
380736d045
commit
2fa7b722ce
@@ -70,7 +70,9 @@
|
||||
#include "circuitmux_ewma.h"
|
||||
#include "circuitstats.h"
|
||||
#include "compress.h"
|
||||
#include "compress_lzma.h"
|
||||
#include "compress_zlib.h"
|
||||
#include "compress_zstd.h"
|
||||
#include "config.h"
|
||||
#include "connection.h"
|
||||
#include "connection_edge.h"
|
||||
@@ -4953,6 +4955,12 @@ options_init_from_torrc(int argc, char **argv)
|
||||
printf("Zlib \t\t%-15s\t\t%s\n",
|
||||
tor_zlib_get_header_version_str(),
|
||||
tor_zlib_get_version_str());
|
||||
printf("Liblzma \t\t%-15s\t\t%s\n",
|
||||
tor_lzma_get_header_version_str(),
|
||||
tor_lzma_get_version_str());
|
||||
printf("Libzstd \t\t%-15s\t\t%s\n",
|
||||
tor_zstd_get_header_version_str(),
|
||||
tor_zstd_get_version_str());
|
||||
//TODO: Hex versions?
|
||||
exit(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user