mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 10:37:37 -07:00
p2p: tone down "no incoming connections" warning to info if in peers is 0
Also add an info if not offline, since it weakens the network
This commit is contained in:
parent
4cbb476cd1
commit
14a5c2068f
@ -1334,12 +1334,19 @@ namespace nodetool
|
|||||||
template<class t_payload_net_handler>
|
template<class t_payload_net_handler>
|
||||||
bool node_server<t_payload_net_handler>::check_incoming_connections()
|
bool node_server<t_payload_net_handler>::check_incoming_connections()
|
||||||
{
|
{
|
||||||
if (m_offline || m_hide_my_port)
|
if (m_offline)
|
||||||
return true;
|
return true;
|
||||||
if (get_incoming_connections_count() == 0)
|
if (get_incoming_connections_count() == 0)
|
||||||
{
|
{
|
||||||
const el::Level level = el::Level::Warning;
|
if (m_hide_my_port || m_config.m_net_config.max_in_connection_count == 0)
|
||||||
MCLOG_RED(level, "global", "No incoming connections - check firewalls/routers allow port " << get_this_peer_port());
|
{
|
||||||
|
MGINFO("Incoming connections disabled, enable them for full connectivity");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
const el::Level level = el::Level::Warning;
|
||||||
|
MCLOG_RED(level, "global", "No incoming connections - check firewalls/routers allow port " << get_this_peer_port());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user