diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-11-19 10:42:04 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-11-19 10:42:04 -0500 |
commit | c4e0b28ecb90657eba1aaee8a590b408aaaad19a (patch) | |
tree | bb14c4cae6358e3b37debeb36bcf7e45cadcae49 /src/app | |
parent | 6fcb94beadfa4523271abc83e82dc523deda8be7 (diff) | |
parent | 4382e977f74e41f65170b4d9292678859c9e521f (diff) | |
download | tor-c4e0b28ecb90657eba1aaee8a590b408aaaad19a.tar.gz tor-c4e0b28ecb90657eba1aaee8a590b408aaaad19a.zip |
Merge remote-tracking branch 'tor-gitlab/mr/214' into master
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/config/config.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/app/config/config.c b/src/app/config/config.c index b5cc382258..e6cc92e082 100644 --- a/src/app/config/config.c +++ b/src/app/config/config.c @@ -4486,6 +4486,25 @@ options_init_from_torrc(int argc, char **argv) if (config_line_find(cmdline_only_options, "--version")) { printf("Tor version %s.\n",get_version()); + printf("Tor is running on %s with Libevent %s, " + "%s %s, Zlib %s, Liblzma %s, Libzstd %s and %s %s as libc.\n", + get_uname(), + tor_libevent_get_version_str(), + crypto_get_library_name(), + crypto_get_library_version_string(), + tor_compress_supports_method(ZLIB_METHOD) ? + tor_compress_version_str(ZLIB_METHOD) : "N/A", + tor_compress_supports_method(LZMA_METHOD) ? + tor_compress_version_str(LZMA_METHOD) : "N/A", + tor_compress_supports_method(ZSTD_METHOD) ? + tor_compress_version_str(ZSTD_METHOD) : "N/A", + tor_libc_get_name() ? + tor_libc_get_name() : "Unknown", + tor_libc_get_version_str()); + printf("Tor compiled with %s version %s\n", + strcmp(COMPILER_VENDOR, "gnu") == 0? + COMPILER:COMPILER_VENDOR, COMPILER_VERSION); + return 1; } |