Committer  : isomer
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Commit time: 2005-02-21 08:52:14 UTC

Modified files:
     ChangeLog ircd/s_stats.c

Log message:

Author: Perry Lorier <[EMAIL PROTECTED]>
Log message:

Don't unintentionally reveal hub IP's.

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.557 ircu2.10/ChangeLog:1.558
--- ircu2.10/ChangeLog:1.557    Sat Feb 19 14:11:38 2005
+++ ircu2.10/ChangeLog  Mon Feb 21 00:52:01 2005
@@ -1,3 +1,7 @@
+2005-02-21  Perry Lorier <[EMAIL PROTECTED]>
+
+       * ircd/s_stats.c: Hide the hub IP's.  They're kinda important.
+
 2005-02-20  Perry Lorier <[EMAIL PROTECTED]>
 
        * ircd/ircd_parser.y: Moved some parse errors from log_write()'s to
Index: ircu2.10/ircd/s_stats.c
diff -u ircu2.10/ircd/s_stats.c:1.33 ircu2.10/ircd/s_stats.c:1.34
--- ircu2.10/ircd/s_stats.c:1.33        Sat Feb 19 13:55:37 2005
+++ ircu2.10/ircd/s_stats.c     Mon Feb 21 00:52:03 2005
@@ -60,7 +60,7 @@
 /** @file
  * @brief Report configuration lines and other statistics from this
  * server.
- * @version $Id: s_stats.c,v 1.33 2005/02/19 21:55:37 entrope Exp $
+ * @version $Id: s_stats.c,v 1.34 2005/02/21 08:52:03 isomer Exp $
  *
  * Note: The info is reported in the order the server uses
  *       it--not reversed as in ircd.conf!
@@ -104,7 +104,7 @@
       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,
----------------------- End of diff -----------------------

Reply via email to