aboutsummaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-11-03 13:07:33 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-11-03 13:07:33 +0000
commit223b2c513b3470bd97f868a4acab62b1f471e495 (patch)
tree037a453a695b9ef215a349ef7a2020c76c86c845 /options.c
parentUpdated docs to reflect the addition of (diff)
downloadopenvpn-223b2c513b3470bd97f868a4acab62b1f471e495.tar.xz
Fixed some ifconfig-pool issues that precluded
it from being combined with --server directive. Now, for example, we can configure thusly: server 10.8.0.0 255.255.255.0 nopool ifconfig-pool 10.8.0.2 10.8.0.99 255.255.255.0 to have ifconfig-pool manage only a subset of the VPN subnet. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3471 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'options.c')
-rw-r--r--options.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/options.c b/options.c
index e84e03c..95d81a0 100644
--- a/options.c
+++ b/options.c
@@ -4499,7 +4499,8 @@ add_option (struct options *options,
options->ifconfig_pool_defined = true;
options->ifconfig_pool_start = start;
options->ifconfig_pool_end = end;
- options->ifconfig_pool_netmask = netmask;
+ if (netmask)
+ options->ifconfig_pool_netmask = netmask;
}
else if (streq (p[0], "ifconfig-pool-persist") && p[1])
{