From c1bda4008f1c70c172a8191d9fb1c80c9bb214bd Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sun, 3 Dec 2017 13:55:22 -0800 Subject: [PATCH] ircd::net: Fix port inclusion in these places. --- ircd/net.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ircd/net.cc b/ircd/net.cc index dc93ef613..845e64541 100644 --- a/ircd/net.cc +++ b/ircd/net.cc @@ -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) };