Fix listener address for Port blocks with no host listed.
authorMichael Poole <mdpoole@troilus.org>
Tue, 27 Mar 2007 01:08:22 +0000 (01:08 +0000)
committerMichael Poole <mdpoole@troilus.org>
Tue, 27 Mar 2007 01:08:22 +0000 (01:08 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1789 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/ircd_parser.y

index dfe1fe57102e94c2056d6d64fae17578c5a20cb0..42aae94acac349e06fc7f2c2455999967e1af42a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-03-26  Michael Poole <mdpoole@troilus.org>
+
+       * ircd/ircd_parser.y (portblock): Restore old behavior for Port
+       blocks with no host listed.
+
 2007-03-26  Michael Poole <mdpoole@troilus.org>
 
        * doc/readme.iauth (iauth I): Fix example and syntax.
index 67fddfcc6a43f3c3fedab746193972cac908f7b0..d75d32f9f7c25fb9ba0339aa3a9f645a5ce6d668 100644 (file)
@@ -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)) {