From e2ab371068a988053b28cabc27e279ec62029329 Mon Sep 17 00:00:00 2001 From: Perry Lorier Date: Mon, 21 Feb 2005 08:52:03 +0000 Subject: [PATCH] Author: Perry Lorier Log message: Don't unintentionally reveal hub IP's. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1321 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 4 ++++ ircd/s_stats.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4520829..4545f05 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-02-21 Perry Lorier + + * ircd/s_stats.c: Hide the hub IP's. They're kinda important. + 2005-02-20 Perry Lorier * ircd/ircd_parser.y: Moved some parse errors from log_write()'s to diff --git a/ircd/s_stats.c b/ircd/s_stats.c index d61f0f5..9fdb35d 100644 --- a/ircd/s_stats.c +++ b/ircd/s_stats.c @@ -104,7 +104,7 @@ stats_configured_links(struct Client *sptr, const struct StatDesc* sd, if (tmp->status & CONF_UWORLD) send_reply(sptr, RPL_STATSULINE, host); else if (tmp->status & CONF_SERVER) - send_reply(sptr, RPL_STATSCLINE, name, (host[0] == ':' ? "0" : ""), host, port, maximum, hub_limit, get_conf_class(tmp)); + send_reply(sptr, RPL_STATSCLINE, name, "", "*", port, maximum, hub_limit, get_conf_class(tmp)); else if (tmp->status & CONF_CLIENT) send_reply(sptr, RPL_STATSILINE, (tmp->host ? tmp->host : "*"), maximum, -- 2.20.1