0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 15:33:54 +01:00

modules/console: Show listener options raw JSON.

This commit is contained in:
Jason Volk 2018-08-29 15:54:24 -07:00
parent fcb5965e45
commit 39756df70f

View file

@ -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;
}