set SSU2 port +1 if not specified

This commit is contained in:
orignal 2022-08-09 14:08:13 -04:00
parent ab606a1121
commit df92a85159
4 changed files with 24 additions and 19 deletions

View file

@ -49,8 +49,9 @@ namespace transport
if (ssu2Port) port = ssu2Port;
else
{
bool ssu; i2p::config::GetOption("ssu", ssu);
uint16_t p; i2p::config::GetOption ("port", p);
if (p) port = p;
if (p) port = ssu ? (p + 1) : p;
}
}
if (port)