From 838c794833cf2e3f5aef21b86d7041d80789aff0 Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Tue, 27 Mar 2007 01:08:22 +0000 Subject: [PATCH] Fix listener address for Port blocks with no host listed. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1789 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 5 +++++ ircd/ircd_parser.y | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index dfe1fe5..42aae94 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-03-26 Michael Poole + + * ircd/ircd_parser.y (portblock): Restore old behavior for Port + blocks with no host listed. + 2007-03-26 Michael Poole * doc/readme.iauth (iauth I): Fix example and syntax. diff --git a/ircd/ircd_parser.y b/ircd/ircd_parser.y index 67fddfc..d75d32f 100644 --- a/ircd/ircd_parser.y +++ b/ircd/ircd_parser.y @@ -698,6 +698,14 @@ address_family: 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)) { -- 2.20.1