From e76d26de9454bd57f444f77c18735486190f8112 Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 19 Feb 2016 20:39:31 +0300 Subject: [PATCH] Don't inbclude listen port and testnet option into autogenerated config file. --- src/protocol.h | 4 ++-- src/util.cpp | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/protocol.h b/src/protocol.h index b4ebac6..ece6184 100644 --- a/src/protocol.h +++ b/src/protocol.h @@ -17,9 +17,9 @@ #include "uint256.h" extern bool fTestNet; -static inline unsigned short GetDefaultPort(const bool testnet = fTestNet) +inline unsigned short GetDefaultPort() { - return static_cast(testnet ? 17777 : 7777); + return static_cast(fTestNet ? 17777 : 7777); } diff --git a/src/util.cpp b/src/util.cpp index 7fb43bc..73621d8 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -1180,13 +1180,11 @@ void createConf() pConf << "rpcuser=user\nrpcpassword=" + randomStrGen(15) + "\nrpcport=8344" - + "\nport=7777" + "\n#(0=off, 1=on) daemon - run in the background as a daemon and accept commands" + "\ndaemon=0" + "\n#(0=off, 1=on) server - accept command line and JSON-RPC commands" + "\nserver=0" - + "\nrpcallowip=127.0.0.1" - + "\ntestnet=0"; + + "\nrpcallowip=127.0.0.1"; pConf.close(); } -- 1.7.1