Committer : entrope
CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Branch tags: u2_10_12_branch
Commit time: 2007-03-27 01:08:32 UTC
Modified files:
Tag: u2_10_12_branch
ircd/ircd_parser.y ChangeLog
Log message:
Fix listener address for Port blocks with no host listed.
---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.710.2.167 ircu2.10/ChangeLog:1.710.2.168
--- ircu2.10/ChangeLog:1.710.2.167 Mon Mar 26 18:07:06 2007
+++ ircu2.10/ChangeLog Mon Mar 26 18:08:22 2007
@@ -1,5 +1,10 @@
2007-03-26 Michael Poole <[EMAIL PROTECTED]>
+ * ircd/ircd_parser.y (portblock): Restore old behavior for Port
+ blocks with no host listed.
+
+2007-03-26 Michael Poole <[EMAIL PROTECTED]>
+
* doc/readme.iauth (iauth I): Fix example and syntax.
2007-03-18 Michael Poole <[EMAIL PROTECTED]>
Index: ircu2.10/ircd/ircd_parser.y
diff -u ircu2.10/ircd/ircd_parser.y:1.56.2.12
ircu2.10/ircd/ircd_parser.y:1.56.2.13
--- ircu2.10/ircd/ircd_parser.y:1.56.2.12 Sat Mar 17 19:46:56 2007
+++ ircu2.10/ircd/ircd_parser.y Mon Mar 26 18:08:22 2007
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
* USA.
- * $Id: ircd_parser.y,v 1.56.2.12 2007/03/18 02:46:56 entrope Exp $
+ * $Id: ircd_parser.y,v 1.56.2.13 2007/03/27 01:08:22 entrope Exp $
*/
%{
@@ -698,6 +698,14 @@
portblock: PORT '{' portitems '}' ';' {
struct ListenerFlags flags_here;
struct SLink *link;
+ if (hosts == NULL) {
+ struct SLink *link;
+ link = make_link();
+ DupString(link->value.cp, "*");
+ link->flags = 0;
+ link->next = hosts;
+ hosts = link;
+ }
for (link = hosts; link != NULL; link = link->next) {
memcpy(&flags_here, &listen_flags, sizeof(&flags_here));
switch (link->flags & (USE_IPV4 | USE_IPV6)) {
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches