add support to suppress diagnostic messages from the bridges to the FNE;

pull/69/head
Bryan Biedenkapp 2 years ago
parent 3edab9f384
commit 5aaad9c2fb

@ -52,6 +52,9 @@ network:
# 0 - 9, A - F.)
presharedKey: "000102030405060708090A0B0C0D0E0F000102030405060708090A0B0C0D0E0F"
# Flag indicating whether or not the host diagnostic log will be sent to the network.
allowDiagnosticTransfer: true
# Flag indicating whether or not verbose debug logging is enabled.
debug: false

@ -829,6 +829,7 @@ bool HostBridge::createNetwork()
uint16_t local = (uint16_t)networkConf["local"].as<uint32_t>(0U);
uint32_t id = networkConf["id"].as<uint32_t>(1000U);
std::string password = networkConf["password"].as<std::string>();
bool allowDiagnosticTransfer = networkConf["allowDiagnosticTransfer"].as<bool>(false);
bool debug = networkConf["debug"].as<bool>(false);
m_udpAudio = networkConf["udpAudio"].as<bool>(false);
@ -922,7 +923,7 @@ bool HostBridge::createNetwork()
}
// initialize networking
m_network = new PeerNetwork(address, port, local, id, password, true, debug, dmr, p25, false, true, true, true, true, true, false);
m_network = new PeerNetwork(address, port, local, id, password, true, debug, dmr, p25, false, true, true, true, allowDiagnosticTransfer, true, false);
m_network->setMetadata(m_identity, 0U, 0U, 0.0F, 0.0F, 0, 0, 0, 0.0F, 0.0F, 0, "");
m_network->setConventional(true);

Loading…
Cancel
Save

Powered by TurnKey Linux.