nghttpx: Print version number with -v option
This commit is contained in:
parent
61dc1a7c62
commit
dbe287ff5e
|
@ -1596,7 +1596,7 @@ void fill_default_config(Config *config) {
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
void print_version(std::ostream &out) {
|
void print_version(std::ostream &out) {
|
||||||
out << get_config()->http.server_name.c_str() << std::endl;
|
out << "nghttpx nghttp2/" NGHTTP2_VERSION << std::endl;
|
||||||
}
|
}
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue