mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-02 02:54:01 +01:00
set SSU2 port if not specified
This commit is contained in:
parent
6039cdceb0
commit
2a24584d45
|
@ -257,6 +257,12 @@ namespace util
|
|||
if (published)
|
||||
{
|
||||
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
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue