mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-27 05:13:25 +01:00
commit
ad843541d5
@ -2180,7 +2180,7 @@ namespace nodetool
|
|||||||
|
|
||||||
const epee::net_utils::network_address na = context.m_remote_address;
|
const epee::net_utils::network_address na = context.m_remote_address;
|
||||||
std::string ip;
|
std::string ip;
|
||||||
uint32_t ipv4_addr;
|
uint32_t ipv4_addr = 0;
|
||||||
boost::asio::ip::address_v6 ipv6_addr;
|
boost::asio::ip::address_v6 ipv6_addr;
|
||||||
bool is_ipv4;
|
bool is_ipv4;
|
||||||
if (na.get_type_id() == epee::net_utils::ipv4_network_address::get_type_id())
|
if (na.get_type_id() == epee::net_utils::ipv4_network_address::get_type_id())
|
||||||
|
@ -221,7 +221,7 @@ namespace
|
|||||||
void add_subscriptions(std::array<std::size_t, N>& subs, const epee::span<const context<T>> range, context<T> const* const first)
|
void add_subscriptions(std::array<std::size_t, N>& subs, const epee::span<const context<T>> range, context<T> const* const first)
|
||||||
{
|
{
|
||||||
assert(range.size() <= N);
|
assert(range.size() <= N);
|
||||||
assert(range.begin() - first <= N - range.size());
|
assert((unsigned long)(range.begin() - first) <= N - range.size());
|
||||||
|
|
||||||
for (const auto& ctx : range)
|
for (const auto& ctx : range)
|
||||||
{
|
{
|
||||||
@ -234,7 +234,7 @@ namespace
|
|||||||
void remove_subscriptions(std::array<std::size_t, N>& subs, const epee::span<const context<T>> range, context<T> const* const first)
|
void remove_subscriptions(std::array<std::size_t, N>& subs, const epee::span<const context<T>> range, context<T> const* const first)
|
||||||
{
|
{
|
||||||
assert(range.size() <= N);
|
assert(range.size() <= N);
|
||||||
assert(range.begin() - first <= N - range.size());
|
assert((unsigned long)(range.begin() - first) <= N - range.size());
|
||||||
|
|
||||||
for (const auto& ctx : range)
|
for (const auto& ctx : range)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user