Skip to content

Commit 9d567a7

Browse files
committed
Remove auto entry of ports to config file
1 parent befbf24 commit 9d567a7

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/util.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -608,22 +608,11 @@ static unsigned int RandomIntegerRange(unsigned int nMin, unsigned int nMax)
608608

609609
static void WriteConfigFile(FILE* configFile)
610610
{
611-
// Gets RPC Port
612-
std::stringstream streamRPCPort;
613-
streamRPCPort << "rpcport=" << BaseParams(CBaseChainParams::MAIN).RPCPort() << "\n";
614-
std::string rpcPort = streamRPCPort.str();
615-
// Gets Default Protocol Port
616-
std::stringstream streamPort;
617-
streamPort << "port=" << DEFAULT_P2P_PORT << "\n";
618-
std::string port = streamPort.str();
619-
620611
fputs("#Do not use special characters with username/password\n", configFile);
621612
std::string sRPCpassword = "rpcpassword=" + GenerateRandomString(RandomIntegerRange(18, 24)) + "\n";
622613
std::string sUserID = "rpcuser=" + GenerateRandomString(RandomIntegerRange(7, 11)) + "\n";
623614
fputs(sUserID.c_str(), configFile);
624615
fputs(sRPCpassword.c_str(), configFile);
625-
fputs(rpcPort.c_str(), configFile);
626-
fputs(port.c_str(), configFile);
627616
fclose(configFile);
628617
ReadConfigFile(GetArg("-conf", DYNAMIC_CONF_FILENAME));
629618
}

0 commit comments

Comments
 (0)