From 8d5cd8afefd495df1d1931f631e8a1a96595d750 Mon Sep 17 00:00:00 2001 From: Gioacchino Mazzurco Date: Thu, 22 Feb 2018 15:38:20 +0100 Subject: [PATCH] Increase size of list of ip shared via discovery2 --- libretroshare/src/pqi/pqiipset.h | 2 +- libretroshare/src/services/p3discovery2.cc | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libretroshare/src/pqi/pqiipset.h b/libretroshare/src/pqi/pqiipset.h index 29c8aaddd..6da862b08 100644 --- a/libretroshare/src/pqi/pqiipset.h +++ b/libretroshare/src/pqi/pqiipset.h @@ -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 { diff --git a/libretroshare/src/services/p3discovery2.cc b/libretroshare/src/services/p3discovery2.cc index 64e2ac1df..286848a6f 100644 --- a/libretroshare/src/services/p3discovery2.cc +++ b/libretroshare/src/services/p3discovery2.cc @@ -356,7 +356,8 @@ void p3discovery2::sendOwnContactInfo(const SSLID &sslid) std::vector 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