From 44f513aca2fe3609b9085071db798343ce414af1 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 4 Nov 2021 15:42:51 +0100 Subject: [PATCH] shrpx: make nghttpx -v show ngtcp2 and nghttp3 version as well ... if HTTP/3 support is built in. --- src/shrpx.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/shrpx.cc b/src/shrpx.cc index e4b68488..e1fa2b49 100644 --- a/src/shrpx.cc +++ b/src/shrpx.cc @@ -2053,7 +2053,12 @@ void fill_default_config(Config *config) { namespace { void print_version(std::ostream &out) { - out << "nghttpx nghttp2/" NGHTTP2_VERSION << std::endl; + out << "nghttpx nghttp2/" NGHTTP2_VERSION +#ifdef ENABLE_HTTP3 + " ngtcp2/" NGTCP2_VERSION + " nghttp3/" NGHTTP3_VERSION +#endif + << std::endl; } } // namespace