projects
/
ircu2.10.12-pk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Author: Michael Poole <mdpoole@troilus.org>
[ircu2.10.12-pk.git]
/
ircd
/
ircd_parser.y
diff --git
a/ircd/ircd_parser.y
b/ircd/ircd_parser.y
index e3dd3297ea92fdf9fe9e7af1b00ebe9515425cae..a43b9446cd7619768bafb7e301ea67525065901f 100644
(file)
--- a/
ircd/ircd_parser.y
+++ b/
ircd/ircd_parser.y
@@
-463,7
+463,6
@@
classusermode: USERMODE '=' QSTRING ';'
connectblock: CONNECT
{
connectblock: CONNECT
{
- maxlinks = 65535;
flags = CONF_AUTOCONNECT;
} '{' connectitems '}' ';'
{
flags = CONF_AUTOCONNECT;
} '{' connectitems '}' ';'
{
@@
-488,7
+487,10
@@
connectblock: CONNECT
aconf->conn_class = c_class;
aconf->address.port = port;
aconf->host = host;
aconf->conn_class = c_class;
aconf->address.port = port;
aconf->host = host;
- aconf->maximum = maxlinks;
+ /* If the user specified a hub allowance, but not maximum links,
+ * allow an effectively unlimited number of hops.
+ */
+ aconf->maximum = (hub_limit != NULL && maxlinks == 0) ? 65535 : maxlinks;
aconf->hub_limit = hub_limit;
aconf->flags = flags;
lookup_confhost(aconf);
aconf->hub_limit = hub_limit;
aconf->flags = flags;
lookup_confhost(aconf);
@@
-502,7
+504,7
@@
connectblock: CONNECT
}
name = pass = host = origin = hub_limit = NULL;
c_class = NULL;
}
name = pass = host = origin = hub_limit = NULL;
c_class = NULL;
- port = flags = 0;
+ port = flags =
maxlinks =
0;
};
connectitems: connectitem connectitems | connectitem;
connectitem: connectname | connectpass | connectclass | connecthost
};
connectitems: connectitem connectitems | connectitem;
connectitem: connectname | connectpass | connectclass | connecthost
@@
-830,6
+832,7
@@
clientblock: CLIENT
host = NULL;
username = NULL;
c_class = NULL;
host = NULL;
username = NULL;
c_class = NULL;
+ maxlinks = 0;
ip = NULL;
pass = NULL;
port = 0;
ip = NULL;
pass = NULL;
port = 0;