shrpx: make nghttpx -v show ngtcp2 and nghttp3 version as well
... if HTTP/3 support is built in.
This commit is contained in:
parent
c4828dbd7c
commit
44f513aca2
|
@ -2053,7 +2053,12 @@ void fill_default_config(Config *config) {
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
void print_version(std::ostream &out) {
|
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
|
} // namespace
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue