fixed what i broke

This commit is contained in:
Lion Kortlepel 2020-12-23 23:52:51 +01:00
parent 1a2c956d9e
commit 0f33367f6b

View File

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