mirror of
https://github.com/overte-org/overte.git
synced 2025-04-07 20:14:22 +02:00
have the DS ignore packets it receives with incorrect headers
This commit is contained in:
parent
a4c525e308
commit
9f320568e1
1 changed files with 2 additions and 1 deletions
|
@ -96,7 +96,8 @@ int main(int argc, const char * argv[])
|
|||
agentList->startSilentAgentRemovalThread();
|
||||
|
||||
while (true) {
|
||||
if (agentList->getAgentSocket().receive((sockaddr *)&agentPublicAddress, packetData, &receivedBytes)) {
|
||||
if (agentList->getAgentSocket().receive((sockaddr *)&agentPublicAddress, packetData, &receivedBytes) &&
|
||||
(packetData[0] == PACKET_HEADER_DOMAIN_RFD) || (packetData[0] == PACKET_HEADER_DOMAIN_LIST_REQUEST)) {
|
||||
std::map<char, Agent *> newestSoloAgents;
|
||||
|
||||
agentType = packetData[1];
|
||||
|
|
Loading…
Reference in a new issue