From: Chris Porter Date: Thu, 14 Aug 2008 22:35:33 +0000 (+0100) Subject: Someone figured out how to print the ip, nterfacer now shows bad IP connections. X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/commitdiff_plain/9c312e03f6b06bb5a1781f3709b117305652b4c2 Someone figured out how to print the ip, nterfacer now shows bad IP connections. --- diff --git a/nterfacer/nterfacer.c b/nterfacer/nterfacer.c index 604de3ca..70e9ed41 100644 --- a/nterfacer/nterfacer.c +++ b/nterfacer/nterfacer.c @@ -15,6 +15,8 @@ #include #include #include +#include +#include #include "../lib/sstring.h" #include "../lib/irc_string.h" @@ -363,8 +365,7 @@ void nterfacer_accept_event(struct esocket *socket) { } if(!item) { - /* Someone needs to figure out how to print the IP :) */ - nterface_log(nrl, NL_INFO, "Unauthorised connection closed"); + nterface_log(nrl, NL_INFO, "Unauthorised connection from %s closed", inet_ntoa(sin.sin_addr)); close(newfd); return; }