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:
parent
114bbdb7d0
commit
be8b9fece0
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue