Author: Perry Lorier <isomer@undernet.org>
authorPerry Lorier <isomer@undernet.org>
Mon, 21 Feb 2005 08:52:03 +0000 (08:52 +0000)
committerPerry Lorier <isomer@undernet.org>
Mon, 21 Feb 2005 08:52:03 +0000 (08:52 +0000)
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
ircd/s_stats.c

index 45208291bf5d73ef38c6c2070aff82b5544dfe92..4545f05199fbe2a4b0d1ebad1064644a1776cd6a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-02-21  Perry Lorier <isomer@undernet.org>
+
+       * ircd/s_stats.c: Hide the hub IP's.  They're kinda important.
+
 2005-02-20  Perry Lorier <isomer@undernet.org>
 
        * ircd/ircd_parser.y: Moved some parse errors from log_write()'s to
index d61f0f59327840f5172eca6e045417608fc7bb66..9fdb35d65b1059a53e23b7f9258c30869363f955 100644 (file)
@@ -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,