mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-03-18 13:06:10 -04:00
Increase size of list of ip shared via discovery2
This commit is contained in:
parent
9dd1aef2b7
commit
8d5cd8afef
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user