From 673f583f76358b57e7f610084d3cb28bb2a9c4a2 Mon Sep 17 00:00:00 2001 From: james Date: Thu, 17 Sep 2009 23:43:37 +0000 Subject: The maximum number of "route" directives (specified in the config file or pulled from a server) can now be configured via the new "max-routes" directive. Previously, the limit was set to 100 and fixed by a compile-time constant. Now the limit is dynamic and can be modified by the "max-routes" directive. If max-routes is not specified, the default limit is 100. Note that this change does not address the maximum size of the pushed options string sent from server to client, which is still controlled by the TLS_CHANNEL_BUF_SIZE compile-time constant. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@4967 e7ae566f-a301-0410-adde-c780ea21d3b5 --- init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'init.c') diff --git a/init.c b/init.c index 80b2849..a2821b9 100644 --- a/init.c +++ b/init.c @@ -847,7 +847,7 @@ static void do_alloc_route_list (struct context *c) { if (c->options.routes && !c->c1.route_list) - c->c1.route_list = new_route_list (&c->gc); + c->c1.route_list = new_route_list (c->options.max_routes, &c->gc); } -- cgit v1.2.3