mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 03:37:49 +02:00
enable/disable NTCP2 address
This commit is contained in:
parent
4cf79088f9
commit
f7415c8a8f
3 changed files with 39 additions and 9 deletions
|
@ -159,8 +159,10 @@ namespace i2p
|
|||
if (published)
|
||||
{
|
||||
uint16_t port; i2p::config::GetOption("ntcp2.port", port);
|
||||
i2p::context.PublishNTCP2Address (port);
|
||||
i2p::context.PublishNTCP2Address (port, true); // publish
|
||||
}
|
||||
else
|
||||
i2p::context.PublishNTCP2Address (port, false); // unpublish
|
||||
}
|
||||
|
||||
bool transit; i2p::config::GetOption("notransit", transit);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue