Browse Source

via peer report and init bug for centos 7

master
Tom Early 12 months ago
parent
commit
c1be4f9a80
  1. 4
      callsignlistitem.cpp
  2. 3
      m17protocol.cpp
  3. 2
      main.h

4
callsignlistitem.cpp

@ -120,7 +120,9 @@ bool CCallsignListItem::CheckListedModules(const char *mods) const
// make sure every mods character is matched in m_Mods
const auto count = m_Mods.size();
bool found[count] = { false };
bool found[count];
for (unsigned i=0; i<count; i++)
found[i] = false;
for (auto p=mods; *p; p++)
{
auto pos = m_Mods.find(*p);

3
m17protocol.cpp

@ -492,7 +492,8 @@ void CM17Protocol::OnFirstPacketIn(std::unique_ptr<CPacket> &packet, const CIp &
// update last heard
auto from = client->GetCallsign();
from.SetModule(client->GetReflectorModule());
if (0 == from.GetCS(4).compare("M17-"))
from.SetModule(client->GetReflectorModule());
g_Reflector.GetUsers()->Hearing(s, from);
g_Reflector.ReleaseUsers();
}

2
main.h

@ -50,7 +50,7 @@
#define VERSION_MAJOR 0
#define VERSION_MINOR 3
#define VERSION_REVISION 0
#define VERSION_REVISION 1
// global ------------------------------------------------------

Loading…
Cancel
Save