mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 06:55:52 +08:00
Tided up logging text for acl
This commit is contained in:
@@ -1486,8 +1486,8 @@ bool CDMRSlot::DstIdBlacklist(unsigned int did, unsigned int slot)
|
||||
bool CDMRSlot::DstIdWhitelist(unsigned int did, unsigned int slot, bool gt4k)
|
||||
{
|
||||
if (slot == 1) {
|
||||
if(m_dstWhiteListSlot1.size == 0)
|
||||
return;
|
||||
if(m_dstWhiteListSlot1.size() == 0)
|
||||
return true;
|
||||
// No reflectors on slot1, so we only allow all IDs over 10000 unless specifically whitelisted
|
||||
if(gt4k) {
|
||||
if (std::find(m_dstWhiteListSlot1.begin(), m_dstWhiteListSlot1.end(), did) != m_dstWhiteListSlot1.end() || did >= 10000) {
|
||||
@@ -1500,8 +1500,8 @@ bool CDMRSlot::DstIdWhitelist(unsigned int did, unsigned int slot, bool gt4k)
|
||||
return true;
|
||||
}
|
||||
} else {
|
||||
if(m_dstWhiteListSlot2.size == 0)
|
||||
return;
|
||||
if(m_dstWhiteListSlot2.size() == 0)
|
||||
return true;
|
||||
//On slot2 we allow reflector control IDs, but not secondary TG IDs unless specifically listed
|
||||
if(gt4k) {
|
||||
if (std::find(m_dstWhiteListSlot2.begin(), m_dstWhiteListSlot2.end(), did) != m_dstWhiteListSlot2.end() || did >= 4000) {
|
||||
|
||||
Reference in New Issue
Block a user