Fix ip address order

This commit is contained in:
Maurice Heumann 2023-02-05 19:59:17 +01:00
parent a2f52bce23
commit c040651b2d

View File

@ -32,7 +32,7 @@ namespace steam
gameserveritem_t server{};
server.m_NetAdr.m_usConnectionPort = address.port;
server.m_NetAdr.m_usQueryPort = address.port;
server.m_NetAdr.m_unIP = address.addr;
server.m_NetAdr.m_unIP = ntohl(address.addr);
server.m_nPing = static_cast<int>(ping);
server.m_bHadSuccessfulResponse = success;
server.m_bDoNotRefresh = false;
@ -174,7 +174,6 @@ namespace steam
{
ping_server(srv);
}
});
return reinterpret_cast<void*>(1);