changed to tabs, move tor port to function

This commit is contained in:
weko committed 2023-02-14 20:46:24 +03:00
1 parent 9e0c5d67c7
commit 76d39cc7c9
3 files changed
+19 -19

No files matched your search

+4 -5
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;
}