mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 19:33:28 +01:00
p2p: show ban/unban logs by default again
This commit is contained in:
parent
71ac698b78
commit
f8b97aef34
@ -205,7 +205,7 @@ namespace nodetool
|
|||||||
if(time(nullptr) >= it->second)
|
if(time(nullptr) >= it->second)
|
||||||
{
|
{
|
||||||
m_blocked_ips.erase(it);
|
m_blocked_ips.erase(it);
|
||||||
MLOG_CYAN(el::Level::Info, "IP " << epee::string_tools::get_ip_string_from_int32(addr) << " unblocked.");
|
MCLOG_CYAN(el::Level::Info, "global", "IP " << epee::string_tools::get_ip_string_from_int32(addr) << " unblocked.");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
@ -237,7 +237,7 @@ namespace nodetool
|
|||||||
for (const auto &c: conns)
|
for (const auto &c: conns)
|
||||||
m_net_server.get_config_object().close(c);
|
m_net_server.get_config_object().close(c);
|
||||||
|
|
||||||
MLOG_CYAN(el::Level::Info, "IP " << epee::string_tools::get_ip_string_from_int32(addr) << " blocked.");
|
MCLOG_CYAN(el::Level::Info, "global", "IP " << epee::string_tools::get_ip_string_from_int32(addr) << " blocked.");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
//-----------------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------------
|
||||||
@ -249,7 +249,7 @@ namespace nodetool
|
|||||||
if (i == m_blocked_ips.end())
|
if (i == m_blocked_ips.end())
|
||||||
return false;
|
return false;
|
||||||
m_blocked_ips.erase(i);
|
m_blocked_ips.erase(i);
|
||||||
MLOG_CYAN(el::Level::Info, "IP " << epee::string_tools::get_ip_string_from_int32(addr) << " unblocked.");
|
MCLOG_CYAN(el::Level::Info, "global", "IP " << epee::string_tools::get_ip_string_from_int32(addr) << " unblocked.");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
//-----------------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user