mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-12 19:12:28 -04:00
made init port random, depending on the SSL id
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4026 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
e5385c533e
commit
081cfee461
2 changed files with 11 additions and 2 deletions
|
@ -230,7 +230,7 @@ void RsInit::InitRsConfig()
|
|||
|
||||
RsInitConfig::load_trustedpeer = false;
|
||||
RsInitConfig::firsttime_run = false;
|
||||
RsInitConfig::port = (RSRandom::random_u32() & 0x1fff) + 7000 ; // random port between 7000 and 15191. Random port avoids clashes, improves anonymity.
|
||||
RsInitConfig::port = 0 ;
|
||||
RsInitConfig::forceLocalAddr = false;
|
||||
RsInitConfig::haveLogFile = false;
|
||||
RsInitConfig::outStderr = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue