diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-11-01 14:51:08 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-11-01 16:43:06 +0000 |
commit | 14a5c2068f53cfe1af3056375fed2587bc07d320 (patch) | |
tree | 084cf9946274d747c25928898994fc4b1210b8f3 /src | |
parent | Merge pull request #4721 (diff) | |
download | monero-14a5c2068f53cfe1af3056375fed2587bc07d320.tar.xz |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/p2p/net_node.inl | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl index a61b6107f..fbf265fc9 100644 --- a/src/p2p/net_node.inl +++ b/src/p2p/net_node.inl @@ -1334,12 +1334,19 @@ namespace nodetool template<class t_payload_net_handler> bool node_server<t_payload_net_handler>::check_incoming_connections() { - if (m_offline || m_hide_my_port) + if (m_offline) return true; if (get_incoming_connections_count() == 0) { - const el::Level level = el::Level::Warning; - MCLOG_RED(level, "global", "No incoming connections - check firewalls/routers allow port " << get_this_peer_port()); + if (m_hide_my_port || m_config.m_net_config.max_in_connection_count == 0) + { + 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; } |