From 148329ca88fb5601790546cd1d70b814893d029a Mon Sep 17 00:00:00 2001 From: james Date: Thu, 20 Nov 2008 21:02:10 +0000 Subject: Added optional "nogw" (no gateway) flag to --server-bridge to inhibit the pushing of the route-gateway parameter to clients. Miscellaneous man page edits, fixed some formatting issues. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3550 e7ae566f-a301-0410-adde-c780ea21d3b5 --- options.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'options.c') diff --git a/options.c b/options.c index 44f12a1..e5cc0f2 100644 --- a/options.c +++ b/options.c @@ -4512,6 +4512,12 @@ add_option (struct options *options, options->server_bridge_pool_start = pool_start; options->server_bridge_pool_end = pool_end; } + else if (streq (p[0], "server-bridge") && p[1] && streq (p[1], "nogw")) + { + VERIFY_PERMISSION (OPT_P_GENERAL); + options->server_bridge_proxy_dhcp = true; + options->server_flags |= SF_NO_PUSH_ROUTE_GATEWAY; + } else if (streq (p[0], "server-bridge") && !p[1]) { VERIFY_PERMISSION (OPT_P_GENERAL); -- cgit v1.2.3