mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
p2p: propagate out peers limit to payload handler
This commit is contained in:
parent
6335509727
commit
fcbf7b3f74
1 changed files with 1 additions and 0 deletions
|
@ -2213,6 +2213,7 @@ namespace nodetool
|
||||||
public_zone->second.m_config.m_net_config.max_out_connection_count = count;
|
public_zone->second.m_config.m_net_config.max_out_connection_count = count;
|
||||||
if(current > count)
|
if(current > count)
|
||||||
public_zone->second.m_net_server.get_config_object().del_out_connections(current - count);
|
public_zone->second.m_net_server.get_config_object().del_out_connections(current - count);
|
||||||
|
m_payload_handler.set_max_out_peers(count);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue