more 3rd party filtering

This commit is contained in:
richonguzman 2024-06-24 13:25:30 -04:00
parent 6b1d319901
commit 8bb0b0446c
2 changed files with 2 additions and 2 deletions

View file

@ -63,7 +63,7 @@ namespace DIGI_Utils {
bool thirdPartyPacket = false;
String temp, Sender;
int firstColonIndex = packet.indexOf(":");
if (firstColonIndex > 0 && firstColonIndex < packet.length() && packet[firstColonIndex + 1] == '}' && packet.indexOf("TCPIP") > 0) { // 3rd Party
if (firstColonIndex > 5 && firstColonIndex < (packet.length() - 1) && packet[firstColonIndex + 1] == '}' && packet.indexOf("TCPIP") > 0) { // 3rd Party
thirdPartyPacket = true;
temp = packet.substring(packet.indexOf(":}") + 2);
Sender = temp.substring(0, temp.indexOf(">"));