From 5936b6542aa7bcbc174ad6edfe921ef347c76227 Mon Sep 17 00:00:00 2001 From: drbob Date: Sat, 7 Jan 2012 12:22:30 +0000 Subject: [PATCH] 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 --- libretroshare/src/rsserver/rsinit.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libretroshare/src/rsserver/rsinit.cc b/libretroshare/src/rsserver/rsinit.cc index db3aebff2..aef4d3b34 100644 --- a/libretroshare/src/rsserver/rsinit.cc +++ b/libretroshare/src/rsserver/rsinit.cc @@ -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