mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fixed bug causing option -p to not allow to change listenning port
This commit is contained in:
parent
56fa3edd77
commit
578a514007
@ -306,7 +306,7 @@ int RsInit::InitRetroShare(const RsConfigOptions& conf)
|
|||||||
if( rsInitConfig->outStderr) rsInitConfig->haveLogFile = false ;
|
if( rsInitConfig->outStderr) rsInitConfig->haveLogFile = false ;
|
||||||
if(!rsInitConfig->logfname.empty()) rsInitConfig->haveLogFile = true;
|
if(!rsInitConfig->logfname.empty()) rsInitConfig->haveLogFile = true;
|
||||||
if( rsInitConfig->inet != "127.0.0.1") rsInitConfig->forceLocalAddr = true;
|
if( rsInitConfig->inet != "127.0.0.1") rsInitConfig->forceLocalAddr = true;
|
||||||
if( rsInitConfig->port != 0) rsInitConfig->forceExtPort = true;
|
if( rsInitConfig->port != 0) rsInitConfig->forceExtAddr = true;
|
||||||
#ifdef LOCALNET_TESTING
|
#ifdef LOCALNET_TESTING
|
||||||
if(!portRestrictions.empty()) doPortRestrictions = true;
|
if(!portRestrictions.empty()) doPortRestrictions = true;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user