summaryrefslogtreecommitdiff
path: root/data/templates/ocserv
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-08-15 20:16:02 +0200
committerChristian Poessinger <christian@poessinger.com>2022-08-15 20:16:51 +0200
commite41685a2f56cca0a53b4f8c084f61a85cf561c80 (patch)
tree01009f6ad19b2653b5e07c5dc7fc9c57a43ff9de /data/templates/ocserv
parentbd102eac6d0c97a5f75324d1248814ebdad42da5 (diff)
downloadvyos-1x-e41685a2f56cca0a53b4f8c084f61a85cf561c80.tar.gz
vyos-1x-e41685a2f56cca0a53b4f8c084f61a85cf561c80.zip
ocserv: openconnect: T4614: add support for split-dns
set vpn openconnect network-settings split-dns <domain>
Diffstat (limited to 'data/templates/ocserv')
-rw-r--r--data/templates/ocserv/ocserv_config.j25
1 files changed, 5 insertions, 0 deletions
diff --git a/data/templates/ocserv/ocserv_config.j2 b/data/templates/ocserv/ocserv_config.j2
index d3d022bb0..e0cad5181 100644
--- a/data/templates/ocserv/ocserv_config.j2
+++ b/data/templates/ocserv/ocserv_config.j2
@@ -80,3 +80,8 @@ route = {{ route }}
{% endfor %}
{% endif %}
+{% if network_settings.split_dns is vyos_defined %}
+{% for tmp in network_settings.split_dns %}
+split-dns = {{ tmp }}
+{% endfor %}
+{% endif %}