diff --git a/src/connection.cpp b/src/connection.cpp index 6af63cb..66129a7 100644 --- a/src/connection.cpp +++ b/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";