Browse Source

Fix bugs in autogenerated dragonx confs

pull/112/head
Duke 1 year ago
parent
commit
c6268fc3f2
  1. 16
      src/connection.cpp

16
src/connection.cpp

@ -217,11 +217,21 @@ void ConnectionLoader::createHushConf() {
QTextStream out(&file);
out << "# Autogenerated by Hush SilentDragon " << APP_VERSION << " https://hush.is\n";
if(isdragonx) {
out << "# Autogenerated by Hush SilentDragonX " << APP_VERSION << " https://dragonx.is\n";
} else {
out << "# Autogenerated by Hush SilentDragon " << APP_VERSION << " https://hush.is\n";
}
out << "server=1\n";
out << "rpcuser=hush\n";
out << "rpcpassword=" % randomPassword() << "\n";
out << "rpcport=18031\n";
if(isdragonx) {
out << "rpcuser=dragonx\n";
out << "rpcport=21769\n";
} else {
out << "rpcuser=hush\n";
out << "rpcport=18031\n";
}
out << "txindex=1\n";
out << "addressindex=1\n";
out << "spentindex=1\n";

Loading…
Cancel
Save