mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 08:59:37 -05:00
Remove outdated misleading comment
This commit is contained in:
parent
234daffec7
commit
9fbf56e592
@ -1119,12 +1119,7 @@ bool p3NetMgrIMPL::checkNetAddress()
|
|||||||
#ifdef NETMGR_DEBUG
|
#ifdef NETMGR_DEBUG
|
||||||
std::cerr << "p3NetMgrIMPL::checkNetAddress() Correcting Port to DEFAULT" << std::endl;
|
std::cerr << "p3NetMgrIMPL::checkNetAddress() Correcting Port to DEFAULT" << std::endl;
|
||||||
#endif
|
#endif
|
||||||
// Generate a default port from SSL id. The port will always be the
|
uint16_t new_port = htons(PQI_MIN_PORT_RNG + (RSRandom::random_u32() % (PQI_MAX_PORT - PQI_MIN_PORT_RNG)));
|
||||||
// same, but appear random from peer to peer.
|
|
||||||
// Random port avoids clashes, improves anonymity.
|
|
||||||
//
|
|
||||||
|
|
||||||
int new_port = htons(PQI_MIN_PORT_RNG + (RSRandom::random_u32() % (PQI_MAX_PORT - PQI_MIN_PORT_RNG)));
|
|
||||||
sockaddr_storage_setport(mLocalAddr, new_port);
|
sockaddr_storage_setport(mLocalAddr, new_port);
|
||||||
|
|
||||||
addrChanged = true;
|
addrChanged = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user