mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
changed to tabs, move tor port to function
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user