fixed my own mistake again again

This commit is contained in:
Lion Kortlepel 2020-12-24 00:01:09 +01:00
parent 623437e864
commit 639c94e0f2

View File

@ -127,7 +127,7 @@ void UDPParser(Client* c, std::string Packet) {
sockaddr_in client {};
std::string Data = UDPRcvFromClient(client); //Receives any data from Socket
auto Pos = Data.find(':');
if (Data.empty() || Pos == std::string::npos)
if (Data.empty() || Pos == std::string::npos || Pos > 2)
continue;
/*char clientIp[256];
ZeroMemory(clientIp, 256); ///Code to get IP we don't need that yet