summaryrefslogtreecommitdiff
path: root/data/templates/openvpn
diff options
context:
space:
mode:
authorJernej Jakob <jernej.jakob@gmail.com>2020-04-15 13:59:29 +0200
committerJernej Jakob <jernej.jakob@gmail.com>2020-04-15 21:21:39 +0200
commit44dab795acaa39d8481d86022b691626989e52e8 (patch)
treea312986a8e6b167413036d9f130d8a4b74311537 /data/templates/openvpn
parent3561b1b7b735cec165cb4a71957a6ed9066ad208 (diff)
downloadvyos-1x-44dab795acaa39d8481d86022b691626989e52e8.tar.gz
vyos-1x-44dab795acaa39d8481d86022b691626989e52e8.zip
openvpn: T2335: allow disabling client-ip-pool
Diffstat (limited to 'data/templates/openvpn')
-rw-r--r--data/templates/openvpn/server.conf.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/templates/openvpn/server.conf.tmpl b/data/templates/openvpn/server.conf.tmpl
index a9dacd36e..e2f9062a1 100644
--- a/data/templates/openvpn/server.conf.tmpl
+++ b/data/templates/openvpn/server.conf.tmpl
@@ -78,10 +78,10 @@ topology {% if server_topology == 'point-to-point' %}p2p{% else %}{{ server_topo
mode server
tls-server
{%- else %}
-server {{ server_subnet }}{% if server_pool_start %} nopool{% endif %}
+server {{ server_subnet }} nopool
{%- endif %}
-{%- if server_pool_start %}
+{%- if server_pool %}
ifconfig-pool {{ server_pool_start }} {{ server_pool_stop }}{% if server_pool_netmask %} {{ server_pool_netmask }}{% endif %}
{%- endif %}