Version Server logging

This commit is contained in:
def 2014-01-27 05:33:36 +01:00
parent 9ff38a940b
commit 23ad27fa29

View file

@ -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) &&