|
|
|
|
@ -358,7 +358,6 @@ bool NodeConfig::saveFull() {
|
|
|
|
|
if (!m_privKey.isEmpty()) out << "my_private_key=" << m_privKey << "\n"; |
|
|
|
|
if (!m_pubKey.isEmpty()) out << "my_public_key=" << m_pubKey << "\n"; |
|
|
|
|
out << "auto_sockets=" << (m_autoSockets ? "yes" : "no") << "\n"; |
|
|
|
|
out << "db_path=" << (m_dbPath.isEmpty() ? "chat_data" : m_dbPath) << "\n"; |
|
|
|
|
out << "\n"; |
|
|
|
|
|
|
|
|
|
for (auto& srv : m_servers) { |
|
|
|
|
@ -433,7 +432,6 @@ bool NodeConfig::save() {
|
|
|
|
|
config_update_in_lines(lines, "global", "my_private_key", m_privKey, true); |
|
|
|
|
config_update_in_lines(lines, "global", "my_public_key", m_pubKey, true); |
|
|
|
|
config_update_in_lines(lines, "global", "auto_sockets", m_autoSockets ? "yes" : "no", true); |
|
|
|
|
config_update_in_lines(lines, "global", "db_path", m_dbPath.isEmpty() ? "chat_data" : m_dbPath, true); |
|
|
|
|
|
|
|
|
|
if (!m_controlAddr.isEmpty()) { |
|
|
|
|
int sep = m_controlAddr.lastIndexOf(':'); |
|
|
|
|
|