mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
set SSU2 port +1 if not specified
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user