Increase size of list of ip shared via discovery2

This commit is contained in:
Gioacchino Mazzurco 2018-02-22 15:38:20 +01:00
parent 9dd1aef2b7
commit 8d5cd8afef
No known key found for this signature in database
GPG Key ID: A1FBCA3872E87051
2 changed files with 3 additions and 2 deletions

View File

@ -29,7 +29,7 @@
#include "util/rsnet.h"
#include "serialiser/rstlvaddrs.h"
#define MAX_ADDRESS_LIST_SIZE 4
#define MAX_ADDRESS_LIST_SIZE 10
class pqiIpAddress
{

View File

@ -356,7 +356,8 @@ void p3discovery2::sendOwnContactInfo(const SSLID &sslid)
std::vector<sockaddr_storage> addrs;
if(!detail.hiddenNode && getLocalAddresses(addrs))
{
/* To work around 4 addresses limitation, let's shuffle the list of
/* To work around MAX_ADDRESS_LIST_SIZE addresses limitation,
* let's shuffle the list of
* local addresses in the hope that with enough time every local
* address is advertised to trusted nodes so they may try to
* connect to all of them including the most convenient if a local