mirror of
https://github.com/matrix-construct/construct
synced 2024-11-12 04:51:08 +01:00
ircd::net: Fix port inclusion in these places.
This commit is contained in:
parent
94b5bc75d3
commit
c1bda4008f
1 changed files with 3 additions and 2 deletions
|
@ -752,6 +752,7 @@ noexcept try
|
|||
}
|
||||
else host4(ret) = a.to_v4().to_ulong();
|
||||
|
||||
port(ret) = port(ep);
|
||||
return ret;
|
||||
}
|
||||
catch(...)
|
||||
|
@ -1600,7 +1601,7 @@ ircd::net::string(const uint32_t &ip,
|
|||
{
|
||||
const auto len
|
||||
{
|
||||
fmt::sprintf(buf, "%s:%u", ip::address_v4{ip}.to_string())
|
||||
fmt::sprintf(buf, "%s", ip::address_v4{ip}.to_string())
|
||||
};
|
||||
|
||||
return { data(buf), size_t(len) };
|
||||
|
@ -1622,7 +1623,7 @@ ircd::net::string(const uint128_t &ip,
|
|||
|
||||
const auto len
|
||||
{
|
||||
fmt::sprintf(buf, "%s:%u", ip::address_v6{punpun}.to_string())
|
||||
fmt::sprintf(buf, "%s", ip::address_v6{punpun}.to_string())
|
||||
};
|
||||
|
||||
return { data(buf), size_t(len) };
|
||||
|
|
Loading…
Reference in a new issue