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

ircd::client: Query for remote which throws if d/c'ed here.

This commit is contained in:
Jason Volk 2018-09-15 06:42:52 -07:00
parent 114bbdb7d0
commit be8b9fece0

View file

@ -589,10 +589,8 @@ ircd::client::client(std::shared_ptr<socket> sock)
() -> net::ipport
{
assert(bool(sock));
auto remote(remote_ipport(*sock));
assert(bool(remote));
std::get<remote.PORT>(remote) = 0;
return remote;
const auto &ep(sock->remote());
return { ep.address(), 0 };
}()}
,head_buffer
{