mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-23 17:36:37 +02:00
publish NTCP2 address instead NTCP if NTCP is disabled
This commit is contained in:
parent
6cc6849ccc
commit
0be664cc3d
1 changed files with 6 additions and 0 deletions
|
@ -106,6 +106,12 @@ namespace i2p
|
||||||
{
|
{
|
||||||
if (!m_NTCP2Keys) NewNTCP2Keys ();
|
if (!m_NTCP2Keys) NewNTCP2Keys ();
|
||||||
UpdateNTCP2Address (true);
|
UpdateNTCP2Address (true);
|
||||||
|
if (!ntcp) // NTCP2 should replace NTCP
|
||||||
|
{
|
||||||
|
bool published; i2p::config::GetOption("ntcp2.published", published);
|
||||||
|
if (published)
|
||||||
|
PublishNTCP2Address (port, true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue