diff --git a/configs/fne-config.example.yml b/configs/fne-config.example.yml index e4b3447c..c759cf55 100644 --- a/configs/fne-config.example.yml +++ b/configs/fne-config.example.yml @@ -212,10 +212,10 @@ system: # peer_acl: # Flag indicating whether or not the peer ACLs are enabled. - enabled: true + enabled: false # Peer ACL mode: whitelist or blacklist mode: whitelist # Full path to the white/blacklist file. file: peer_whitelist.dat # Amount of time between updates of white/blacklist file. (minutes) - time: 2 + time: 2 \ No newline at end of file diff --git a/src/fne/HostFNE.cpp b/src/fne/HostFNE.cpp index cd820f8c..a62e12f6 100644 --- a/src/fne/HostFNE.cpp +++ b/src/fne/HostFNE.cpp @@ -348,7 +348,7 @@ bool HostFNE::readParams() uint32_t talkgroupConfigReload = talkgroupRules["time"].as(30U); std::string peerListLookupFile = systemConf["peer_acl"]["file"].as(); - bool peerListLookupEnable = systemConf["peer_acl"]["enabled"].as(); + bool peerListLookupEnable = systemConf["peer_acl"]["enabled"].as(false); std::string peerListModeStr = systemConf["peer_acl"]["mode"].as("whitelist"); uint32_t peerListConfigReload = systemConf["peer_acl"]["time"].as(30U); @@ -370,8 +370,8 @@ bool HostFNE::readParams() // try to load peer whitelist/blacklist LogInfo("Peer List Lookups"); - LogInfo(" Enabled: %s", peerListLookupEnable ? "Yes" : "No"); - LogInfo(" Mode: %s", peerListMode == lookups::PeerListLookup::BLACKLIST ? "Blacklist" : "Whitelist"); + LogInfo(" Enabled: %s", peerListLookupEnable ? "yes" : "no"); + LogInfo(" Mode: %s", peerListMode == lookups::PeerListLookup::BLACKLIST ? "blacklist" : "whitelist"); LogInfo(" File: %s", peerListLookupFile.length() > 0U ? peerListLookupFile.c_str() : "None"); if (peerListConfigReload > 0U) LogInfo(" Reload: %u mins", peerListConfigReload);