mirror of
https://github.com/matrix-construct/construct
synced 2024-06-02 10:08:56 +02:00
ircd::net: Improve string output for remote.
This commit is contained in:
parent
9bb927712e
commit
d10b9effd0
|
@ -2101,7 +2101,11 @@ ircd::net::string(const mutable_buffer &buf,
|
|||
const auto len{strlcpy(data(buf), remote.hostname, size(buf))};
|
||||
return { data(buf), size_t(len) };
|
||||
}
|
||||
else return string(buf, ipp);
|
||||
else
|
||||
{
|
||||
const auto len{fmt::sprintf(buf, "%s => %s", remote.hostname, string(ipp))};
|
||||
return { data(buf), size_t(len) };
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue