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
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue