From 39756df70f61302f0eec7b8d9861ca2a11afe02c Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 29 Aug 2018 15:54:24 -0700 Subject: [PATCH] modules/console: Show listener options raw JSON. --- modules/console.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/console.cc b/modules/console.cc index b76bcded5..838fbe94c 100644 --- a/modules/console.cc +++ b/modules/console.cc @@ -2550,7 +2550,10 @@ console_cmd__net__listen__list(opt &out, const string_view &line) const list &l(listeners); for(const auto &listener : l) - out << "one at " << (const void *)&listener << std::endl; + { + const json::object opts(listener); + out << listener << ": " << opts << std::endl; + } return true; }