summaryrefslogtreecommitdiff
path: root/src/p2p/net_node.inl
diff options
context:
space:
mode:
Diffstat (limited to 'src/p2p/net_node.inl')
-rw-r--r--src/p2p/net_node.inl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl
index 51cf48cb4..6a68790fd 100644
--- a/src/p2p/net_node.inl
+++ b/src/p2p/net_node.inl
@@ -1062,7 +1062,7 @@ namespace nodetool
{
++number_of_in_peers;
}
- else
+ else if (!cntxt.is_ping)
{
++number_of_out_peers;
}
@@ -1973,7 +1973,7 @@ namespace nodetool
size_t count = 0;
zone.m_net_server.get_config_object().foreach_connection([&](const p2p_connection_context& cntxt)
{
- if(!cntxt.m_is_income)
+ if(!cntxt.m_is_income && !cntxt.is_ping)
++count;
return true;
});
@@ -2454,7 +2454,7 @@ namespace nodetool
return false;
}
return true;
- }, "0.0.0.0", m_ssl_support);
+ }, "0.0.0.0", m_ssl_support, p2p_connection_context{true /* is_ping */});
if(!r)
{
LOG_WARNING_CC(context, "Failed to call connect_async, network error.");