0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 07:54:05 +01:00

ircd::net: Remove string(net::hostport) branch which drops port from output.

This commit is contained in:
Jason Volk 2020-03-06 18:16:26 -08:00
parent 5a3ed6e4b3
commit fa19b9b182

View file

@ -4488,14 +4488,6 @@ ircd::net::string(const mutable_buffer &buf,
tolower(tlbuf[0], host(hp)),
};
if(!empty(service(hp)))
return fmt::sprintf
{
buf, "%s:%s",
tolower(tlbuf[0], host(hp)),
tolower(tlbuf[1], service(hp)),
};
if(empty(service(hp)) && port(hp) != 0)
return fmt::sprintf
{