mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
set SSU2 port +1 if not specified
This commit is contained in:
parent
ab606a1121
commit
df92a85159
4 changed files with 24 additions and 19 deletions
|
@ -257,7 +257,7 @@ namespace util
|
|||
if (ssu2)
|
||||
{
|
||||
uint16_t ssu2port; i2p::config::GetOption("ssu2.port", ssu2port);
|
||||
if (!ssu2port) ssu2port = port;
|
||||
if (!ssu2port) ssu2port = ssu ? (port + 1) : port;
|
||||
bool published; i2p::config::GetOption("ssu2.published", published);
|
||||
if (published)
|
||||
i2p::context.PublishSSU2Address (ssu2port, true, ipv4, ipv6); // publish
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue