git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1789
c9e4aea6-c8fd-4c43-8297-
357d70d61c8c
+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.
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)) {