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:
parent
d1f0667b1e
commit
a747098b65
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue