0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-03-14 05:20:17 +01:00

ircd::net: listener: Explicit string ctor; no default port to ensure one is specified.

This commit is contained in:
Jason Volk 2017-11-30 10:33:18 -08:00
parent d1f0667b1e
commit a747098b65
2 changed files with 2 additions and 2 deletions

View file

@ -37,7 +37,7 @@ struct ircd::net::listener
std::shared_ptr<struct acceptor> acceptor;
public:
explicit listener(const std::string &options);
listener(const json::object &options);
listener(const std::string &options);
~listener() noexcept;
};

View file

@ -309,7 +309,7 @@ try
,ep
{
ip::address::from_string(unquote(opts.get("host", "127.0.0.1"s))),
opts.get<uint16_t>("port", 6667)
opts.at<uint16_t>("port")
}
,a
{