mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-08 22:13:48 +01:00
set SSU2 port if not specified
This commit is contained in:
parent
6039cdceb0
commit
2a24584d45
1 changed files with 6 additions and 0 deletions
|
@ -257,6 +257,12 @@ namespace util
|
||||||
if (published)
|
if (published)
|
||||||
{
|
{
|
||||||
uint16_t ssu2port; i2p::config::GetOption("ssu2.port", ssu2port);
|
uint16_t ssu2port; i2p::config::GetOption("ssu2.port", ssu2port);
|
||||||
|
if (!ssu2port)
|
||||||
|
{
|
||||||
|
ssu2port = port;
|
||||||
|
bool ssu; i2p::config::GetOption("ssu", ssu);
|
||||||
|
if (ssu) ssu2port++;
|
||||||
|
}
|
||||||
i2p::context.PublishSSU2Address (ssu2port, true, ipv4, ipv6); // publish
|
i2p::context.PublishSSU2Address (ssu2port, true, ipv4, ipv6); // publish
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue