X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Fs_bsd.c;h=d71037bfe5176fcb288fc34a3bd77733fd7d7574;hb=5a4b603c080666f7c6c48e51e3bb93e80a08fd79;hp=cb8bfdbd9e418a79e809c5d3e537dc993f3032c0;hpb=8049d81b2a13d802a41016396781b02fad16f443;p=ircu2.10.12-pk.git diff --git a/ircd/s_bsd.c b/ircd/s_bsd.c index cb8bfdb..d71037b 100644 --- a/ircd/s_bsd.c +++ b/ircd/s_bsd.c @@ -579,12 +579,23 @@ void add_connection(struct Listener* listener, int fd) * reject the user. */ if (!IPcheck_local_connect(addr.sin_addr, &next_target) && !listener->server) { - ++ServerStats->is_ref; +#ifdef IPCHECKDEBUG + char buff[512]; + snprintf(buff,"\n%s [%i connections active]\n", + throttle_message, + IPcheck_nr(addr.sin_addr)); + buff[511]=0; + send(fd,buff,strlen(buff)); +#else /* * strlen(throttle_message) == 66 + * + * strlen is slow, so we use the constant here. */ send(fd, throttle_message, 66, 0); +#endif close(fd); + ++ServerStats->is_ref; return; }