Remove UDP from bootstrap_initiator class
This commit is contained in:
parent
fd1b9b8c91
commit
b159d49f9e
1 changed files with 1 additions and 5 deletions
|
|
@ -52,11 +52,7 @@ void nano::bootstrap_initiator::bootstrap (nano::endpoint const & endpoint_a, bo
|
||||||
{
|
{
|
||||||
if (add_to_peers)
|
if (add_to_peers)
|
||||||
{
|
{
|
||||||
if (!node.flags.disable_udp)
|
if (!node.flags.disable_tcp_realtime)
|
||||||
{
|
|
||||||
node.network.udp_channels.insert (nano::transport::map_endpoint_to_v6 (endpoint_a), node.network_params.network.protocol_version);
|
|
||||||
}
|
|
||||||
else if (!node.flags.disable_tcp_realtime)
|
|
||||||
{
|
{
|
||||||
node.network.merge_peer (nano::transport::map_endpoint_to_v6 (endpoint_a));
|
node.network.merge_peer (nano::transport::map_endpoint_to_v6 (endpoint_a));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue