Skip to content

Commit

Permalink
more logging tidying for acl
Browse files Browse the repository at this point in the history
  • Loading branch information
hacknix committed Jun 10, 2016
1 parent cb9ec73 commit 63584b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DMRSlot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1488,7 +1488,7 @@ bool CDMRSlot::DstIdWhitelist(unsigned int did, unsigned int slot, bool gt4k)
if (slot == 1) {
if(m_dstWhiteListSlot1.size() == 0)
return true;
// No reflectors on slot1, so we only allow all IDs over 10000 unless specifically whitelisted
// 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) {

Expand All @@ -1502,7 +1502,7 @@ bool CDMRSlot::DstIdWhitelist(unsigned int did, unsigned int slot, bool gt4k)
} else {
if(m_dstWhiteListSlot2.size() == 0)
return true;
//On slot2 we allow reflector control IDs, but not secondary TG IDs unless specifically listed
//On slot2 we allow reflector control IDs, but not secondary TG IDs unless specifically listed. Also allow echo.
if(gt4k) {
if (std::find(m_dstWhiteListSlot2.begin(), m_dstWhiteListSlot2.end(), did) != m_dstWhiteListSlot2.end() || did >= 4000) {

Expand Down
2 changes: 1 addition & 1 deletion MMDVMHost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ int CMMDVMHost::run()
if (dstIDWhiteListSlot1.size() > 0U)
LogInfo(" Slot 1 Destination ID White List: %u entries", dstIDWhiteListSlot1.size());
if (dstIDWhiteListSlot2.size() > 0U)
LogInfo(" Slot 1 Destination ID White List: %u entries", dstIDWhiteListSlot2.size());
LogInfo(" Slot 2 Destination ID White List: %u entries", dstIDWhiteListSlot2.size());

LogInfo(" Timeout: %us", timeout);
LogInfo(" Lookup File: %s", lookupFile.length() > 0U ? lookupFile.c_str() : "None");
Expand Down

0 comments on commit 63584b4

Please sign in to comment.