aboutsummaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-11-20 21:02:10 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-11-20 21:02:10 +0000
commit148329ca88fb5601790546cd1d70b814893d029a (patch)
tree751f1227ad34fe60df4984b12317e6b3e9b5e525 /options.c
parentVersion 2.1_rc15 (diff)
downloadopenvpn-148329ca88fb5601790546cd1d70b814893d029a.tar.xz
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
Diffstat (limited to '')
-rw-r--r--options.c6
1 files changed, 6 insertions, 0 deletions
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);