0
0
Fork 0
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:
Jason Volk 2018-01-08 03:03:26 -08:00
parent 9bb927712e
commit d10b9effd0

View file

@ -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) };
}
}
//