diff --git a/configs/bridge-config.example.yml b/configs/bridge-config.example.yml index 66864d70..54d7d860 100644 --- a/configs/bridge-config.example.yml +++ b/configs/bridge-config.example.yml @@ -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 diff --git a/src/bridge/HostBridge.cpp b/src/bridge/HostBridge.cpp index 4590effb..b003373a 100644 --- a/src/bridge/HostBridge.cpp +++ b/src/bridge/HostBridge.cpp @@ -829,6 +829,7 @@ bool HostBridge::createNetwork() uint16_t local = (uint16_t)networkConf["local"].as(0U); uint32_t id = networkConf["id"].as(1000U); std::string password = networkConf["password"].as(); + bool allowDiagnosticTransfer = networkConf["allowDiagnosticTransfer"].as(false); bool debug = networkConf["debug"].as(false); m_udpAudio = networkConf["udpAudio"].as(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);