Log connection attempts

This commit is contained in:
Markus Armbruster 2013-04-07 20:19:10 +02:00
parent da154ffd06
commit c3e5fd2375
2 changed files with 66 additions and 0 deletions

View file

@ -214,6 +214,7 @@ player_accept(void *unused)
player_delete(np);
continue;
}
logerror("Connect from %s", np->hostaddr);
#ifdef RESOLVE_IPADDRESS
hostp = gethostbyaddr(inaddr, player_addrlen, sap->sa_family);
if (NULL != hostp)