mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
ntcp2.published and ntcp2.port parameters
This commit is contained in:
parent
10e4b5b2a3
commit
07e7c2d852
3 changed files with 16 additions and 1 deletions
|
@ -158,6 +158,8 @@ namespace i2p
|
|||
|
||||
void RouterContext::PublishNTCP2Address (int port)
|
||||
{
|
||||
if (!port)
|
||||
port = rand () % (30777 - 9111) + 9111; // I2P network ports range
|
||||
bool updated = false;
|
||||
for (auto& address : m_RouterInfo.GetAddresses ())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue