mirror of
https://github.com/matrix-construct/construct
synced 2025-01-14 16:46:50 +01:00
modules/console: Show listener options raw JSON.
This commit is contained in:
parent
fcb5965e45
commit
39756df70f
1 changed files with 4 additions and 1 deletions
|
@ -2550,7 +2550,10 @@ console_cmd__net__listen__list(opt &out, const string_view &line)
|
||||||
|
|
||||||
const list &l(listeners);
|
const list &l(listeners);
|
||||||
for(const auto &listener : l)
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue