mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-12 02:55:18 -04:00
Reversed Changes for Testing Purposes.
* Disabled lots of debugging. * Disabled LOCAL test mode in udpstunner, rsinit * Enabled BadPeer checking in bitdht. * Restored normal timeout periods for connection attempts. * Restored normal connection levels for dht status. git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-dhtmods@4779 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
e0dcca8d13
commit
9e5e07d3f0
8 changed files with 22 additions and 22 deletions
|
@ -315,9 +315,11 @@ void RsInit::InitRsConfig()
|
|||
|
||||
/********
|
||||
* LOCALNET_TESTING - allows port restrictions
|
||||
*
|
||||
* #define LOCALNET_TESTING 1
|
||||
*
|
||||
********/
|
||||
|
||||
#define LOCALNET_TESTING 1
|
||||
|
||||
#ifdef LOCALNET_TESTING
|
||||
|
||||
|
@ -2027,10 +2029,14 @@ int RsServer::StartupRetroShare()
|
|||
|
||||
struct sockaddr_in sndladdr;
|
||||
sockaddr_clear(&sndladdr);
|
||||
//uint16_t rndport = MIN_RANDOM_PORT + RSRandom::random_u32() % (MAX_RANDOM_PORT - MIN_RANDOM_PORT);
|
||||
|
||||
#ifdef LOCALNET_TESTING
|
||||
// HACK Proxy Port near Dht Port - For Relay Testing.
|
||||
uint16_t rndport = RsInitConfig::port + 3;
|
||||
sndladdr.sin_port = htons(rndport);
|
||||
#else
|
||||
uint16_t rndport = MIN_RANDOM_PORT + RSRandom::random_u32() % (MAX_RANDOM_PORT - MIN_RANDOM_PORT);
|
||||
#endif
|
||||
|
||||
#ifdef LOCALNET_TESTING
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue