From dbe287ff5e54d697e356f8485c9d0eea6a3b400f Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 27 Mar 2017 22:49:53 +0900 Subject: [PATCH] nghttpx: Print version number with -v option --- src/shrpx.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shrpx.cc b/src/shrpx.cc index c0d3d161..e0aca40f 100644 --- a/src/shrpx.cc +++ b/src/shrpx.cc @@ -1596,7 +1596,7 @@ void fill_default_config(Config *config) { namespace { void print_version(std::ostream &out) { - out << get_config()->http.server_name.c_str() << std::endl; + out << "nghttpx nghttp2/" NGHTTP2_VERSION << std::endl; } } // namespace