diff --git a/src/fne/HostFNE.cpp b/src/fne/HostFNE.cpp index 9007c1b8..f95d76df 100644 --- a/src/fne/HostFNE.cpp +++ b/src/fne/HostFNE.cpp @@ -342,7 +342,7 @@ bool HostFNE::readParams() bool sendTalkgroups = systemConf["sendTalkgroups"].as(true); m_peerReplicaSavesACL = systemConf["peerReplicaSaveACL"].as(false); - bool iAgreeNotToBeStupid = systemConf["iAgreeNotToBeStupid"].as(false); + bool iAgreeNotToBeStupid = m_conf["iAgreeNotToBeStupid"].as(false); if (!iAgreeNotToBeStupid) { LogError(LOG_HOST, HIGHLY_UNNECESSARY_DISCLAIMER_FOR_THE_MENTAL); LogError(LOG_HOST, "You must agree to software license terms, and not to be stupid to use this software."); diff --git a/src/host/Host.Config.cpp b/src/host/Host.Config.cpp index fa8bfcf8..a9d168a9 100644 --- a/src/host/Host.Config.cpp +++ b/src/host/Host.Config.cpp @@ -59,7 +59,7 @@ bool Host::readParams() m_duplex = systemConf["duplex"].as(true); bool simplexSameFreq = systemConf["simplexSameFrequency"].as(false); - bool iAgreeNotToBeStupid = systemConf["iAgreeNotToBeStupid"].as(false); + bool iAgreeNotToBeStupid = m_conf["iAgreeNotToBeStupid"].as(false); if (!iAgreeNotToBeStupid) { LogError(LOG_HOST, HIGHLY_UNNECESSARY_DISCLAIMER_FOR_THE_MENTAL); LogError(LOG_HOST, "You must agree to software license terms, and not to be stupid to use this software.");