From 2afd22a2f0dad9ad2fbb65e616975369a73a9dd0 Mon Sep 17 00:00:00 2001 From: csoler Date: Thu, 8 Aug 2013 14:10:45 +0000 Subject: [PATCH] remove bug due to parameter handling, that resulted in random port at start git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6564 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/rsserver/rsinit.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libretroshare/src/rsserver/rsinit.cc b/libretroshare/src/rsserver/rsinit.cc index 3a8bf1420..37e9598f9 100644 --- a/libretroshare/src/rsserver/rsinit.cc +++ b/libretroshare/src/rsserver/rsinit.cc @@ -374,6 +374,7 @@ int RsInit::InitRetroShare(int argcIgnored, char **argvIgnored, bool strictCheck int c; std::string prefUserString = ""; + /* getopt info: every availiable option is listed here. if it is followed by a ':' it needs an argument. If it is followed by a '::' the argument is optional. */ @@ -406,7 +407,7 @@ int RsInit::InitRetroShare(int argcIgnored, char **argvIgnored, bool strictCheck if(RsInitConfig::autoLogin) RsInitConfig::startMinimised = true ; if(RsInitConfig::outStderr) RsInitConfig::haveLogFile = false ; if(!RsInitConfig::logfname.empty()) RsInitConfig::haveLogFile = true; - if(!RsInitConfig::inet.empty()) RsInitConfig::forceLocalAddr = true; + if(RsInitConfig::inet != "127.0.0.1") RsInitConfig::forceLocalAddr = true; #ifdef LOCALNET_TESTING if(!portRestrictions.empty()) doPortRestrictions = true; #endif