mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-13 08:29:32 -05:00
Hack to disable proxy connections - for testing.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-dhtmods@4757 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
af5f23e0e7
commit
5936b6542a
@ -2027,7 +2027,9 @@ 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);
|
||||
//uint16_t rndport = MIN_RANDOM_PORT + RSRandom::random_u32() % (MAX_RANDOM_PORT - MIN_RANDOM_PORT);
|
||||
// HACK Proxy Port near Dht Port - For Relay Testing.
|
||||
uint16_t rndport = RsInitConfig::port + 3;
|
||||
sndladdr.sin_port = htons(rndport);
|
||||
|
||||
#ifdef LOCALNET_TESTING
|
||||
|
Loading…
Reference in New Issue
Block a user