diff options
author | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2008-11-20 21:02:10 +0000 |
---|---|---|
committer | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2008-11-20 21:02:10 +0000 |
commit | 148329ca88fb5601790546cd1d70b814893d029a (patch) | |
tree | 751f1227ad34fe60df4984b12317e6b3e9b5e525 /helper.c | |
parent | Version 2.1_rc15 (diff) | |
download | openvpn-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-- | helper.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -320,7 +320,8 @@ helper_client_server (struct options *o) * mode server * tls-server * - * push "route-gateway dhcp" + * if !nogw: + * push "route-gateway dhcp" */ else if (o->server_bridge_defined | o->server_bridge_proxy_dhcp) { @@ -355,7 +356,7 @@ helper_client_server (struct options *o) o->ifconfig_pool_netmask = o->server_bridge_netmask; push_option (o, print_opt_route_gateway (o->server_bridge_ip, &o->gc), M_USAGE); } - else if (o->server_bridge_proxy_dhcp) + else if (o->server_bridge_proxy_dhcp && !(o->server_flags & SF_NO_PUSH_ROUTE_GATEWAY)) { push_option (o, print_opt_route_gateway_dhcp (&o->gc), M_USAGE); } |