mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
different cost for direct or with introducers SSU address
This commit is contained in:
parent
11c924bbe7
commit
ae58a7007b
2 changed files with 3 additions and 1 deletions
|
@ -432,6 +432,7 @@ namespace i2p
|
|||
for (auto& addr : addresses)
|
||||
if (addr->ssu)
|
||||
{
|
||||
addr->cost = 11;
|
||||
addr->caps &= ~i2p::data::RouterInfo::eSSUIntroducer; // can't be introducer
|
||||
addr->ssu->introducers.clear ();
|
||||
port = addr->port;
|
||||
|
@ -459,6 +460,7 @@ namespace i2p
|
|||
for (auto& addr : addresses)
|
||||
if (addr->ssu)
|
||||
{
|
||||
addr->cost = 9;
|
||||
addr->caps |= i2p::data::RouterInfo::eSSUIntroducer;
|
||||
addr->ssu->introducers.clear ();
|
||||
port = addr->port;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue