changed to tabs, move tor port to function

This commit is contained in:
weko 2023-02-14 20:03:04 +03:00
parent 9e0c5d67c7
commit 76d39cc7c9
3 changed files with 19 additions and 19 deletions

View file

@ -204,12 +204,11 @@ namespace i2p
{
uint16_t port;
do
{
port = rand () % (30777 - 9111) + 9111; // I2P network ports range
}
while(i2p::util::net::IsPortInReservedRange(port));
{
port = rand () % (30777 - 9111) + 9111; // I2P network ports range
}
while(i2p::util::net::IsPortInReservedRange(port));
if (port == 9150) port = 9151; // Tor browser
return port;
}