mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Version Server logging
This commit is contained in:
parent
9ff38a940b
commit
23ad27fa29
|
@ -106,6 +106,12 @@ int main(int argc, char **argv) // ignore_convention
|
|||
mem_comp(Packet.m_pData, VERSIONSRV_GETVERSION, sizeof(VERSIONSRV_GETVERSION)) == 0)
|
||||
{
|
||||
SendVer(&Packet.m_Address);
|
||||
|
||||
char aAddrStr[NETADDR_MAXSTRSIZE];
|
||||
net_addr_str(&Packet.m_Address, aAddrStr, sizeof(aAddrStr), false);
|
||||
char aBuf[128];
|
||||
str_format(aBuf, sizeof(aBuf), "version request by %s", aAddrStr);
|
||||
dbg_msg("versionsrv", aBuf);
|
||||
}
|
||||
|
||||
if(Packet.m_DataSize == sizeof(VERSIONSRV_GETMAPLIST) &&
|
||||
|
|
Loading…
Reference in a new issue