浏览代码

Display LZMA and Zstandard versions when starting Tor.

See: https://bugs.torproject.org/21662
Alexander Færøy 7 年之前
父节点
当前提交
be4dc54634
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      src/or/main.c

+ 6 - 2
src/or/main.c

@@ -58,7 +58,9 @@
 #include "circuitlist.h"
 #include "circuituse.h"
 #include "command.h"
+#include "compress_lzma.h"
 #include "compress_zlib.h"
+#include "compress_zstd.h"
 #include "config.h"
 #include "confparse.h"
 #include "connection.h"
@@ -2999,11 +3001,13 @@ tor_init(int argc, char *argv[])
     const char *version = get_version();
 
     log_notice(LD_GENERAL, "Tor %s running on %s with Libevent %s, "
-               "OpenSSL %s and Zlib %s.", version,
+               "OpenSSL %s, Zlib %s, Liblzma %s, and Libzstd %s.", version,
                get_uname(),
                tor_libevent_get_version_str(),
                crypto_openssl_get_version_str(),
-               tor_zlib_get_version_str());
+               tor_zlib_get_version_str(),
+               tor_lzma_get_version_str(),
+               tor_zstd_get_version_str());
 
     log_notice(LD_GENERAL, "Tor can't help you if you use it wrong! "
                "Learn how to be safe at "