mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-05-17 04:41:48 +02:00
changed to tabs, move tor port to function
This commit is contained in:
parent
9e0c5d67c7
commit
76d39cc7c9
3 changed files with 19 additions and 19 deletions
libi2pd
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue