mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-04 23:25:32 -04:00
Increase size of list of ip shared via discovery2
This commit is contained in:
parent
9dd1aef2b7
commit
8d5cd8afef
2 changed files with 3 additions and 2 deletions
|
@ -29,7 +29,7 @@
|
||||||
#include "util/rsnet.h"
|
#include "util/rsnet.h"
|
||||||
#include "serialiser/rstlvaddrs.h"
|
#include "serialiser/rstlvaddrs.h"
|
||||||
|
|
||||||
#define MAX_ADDRESS_LIST_SIZE 4
|
#define MAX_ADDRESS_LIST_SIZE 10
|
||||||
|
|
||||||
class pqiIpAddress
|
class pqiIpAddress
|
||||||
{
|
{
|
||||||
|
|
|
@ -356,7 +356,8 @@ void p3discovery2::sendOwnContactInfo(const SSLID &sslid)
|
||||||
std::vector<sockaddr_storage> addrs;
|
std::vector<sockaddr_storage> addrs;
|
||||||
if(!detail.hiddenNode && getLocalAddresses(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
|
* local addresses in the hope that with enough time every local
|
||||||
* address is advertised to trusted nodes so they may try to
|
* address is advertised to trusted nodes so they may try to
|
||||||
* connect to all of them including the most convenient if a local
|
* connect to all of them including the most convenient if a local
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue