mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-22 00:59:08 +01: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
|
@ -209,7 +209,6 @@ namespace i2p
|
||||||
}
|
}
|
||||||
while(i2p::util::net::IsPortInReservedRange(port));
|
while(i2p::util::net::IsPortInReservedRange(port));
|
||||||
|
|
||||||
if (port == 9150) port = 9151; // Tor browser
|
|
||||||
return port;
|
return port;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -490,8 +490,9 @@ namespace net
|
||||||
|
|
||||||
bool IsPortInReservedRange (const uint16_t port) noexcept
|
bool IsPortInReservedRange (const uint16_t port) noexcept
|
||||||
{
|
{
|
||||||
|
// https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers (Feb. 3, 2023) + Tor browser (9150)
|
||||||
static const std::unordered_set<uint16_t> reservedPorts{
|
static const std::unordered_set<uint16_t> reservedPorts{
|
||||||
9119,9306,9312,9389,9418,9535,9536,9695,
|
9119,9150,9306,9312,9389,9418,9535,9536,9695,
|
||||||
9800,9899,10000,10050,10051,10110,10212,
|
9800,9899,10000,10050,10051,10110,10212,
|
||||||
10933,11001,11112,11235,11371,12222,12223,
|
10933,11001,11112,11235,11371,12222,12223,
|
||||||
13075,13400,13720,13721,13724,13782,13783,
|
13075,13400,13720,13721,13724,13782,13783,
|
||||||
|
|
Loading…
Add table
Reference in a new issue