summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorDemon_H <b@doubi.fun>2022-09-16 15:23:52 +0800
committerGitHub <noreply@github.com>2022-09-16 09:23:52 +0200
commitecb2a4077f90e6e4699c8250bcf8f7d6221d9fc6 (patch)
tree5e01b8ab57a97fda7e2fcca425c2d9b59a94cac7 /data
parent28573ffe4fd939a266006840f999c99babe89dce (diff)
downloadvyos-1x-ecb2a4077f90e6e4699c8250bcf8f7d6221d9fc6.tar.gz
vyos-1x-ecb2a4077f90e6e4699c8250bcf8f7d6221d9fc6.zip
ocserv: openconnect: T4656: add listen-address CLI option
This will set the listen-host ocserv configuration option.
Diffstat (limited to 'data')
-rw-r--r--data/templates/ocserv/ocserv_config.j24
1 files changed, 4 insertions, 0 deletions
diff --git a/data/templates/ocserv/ocserv_config.j2 b/data/templates/ocserv/ocserv_config.j2
index 1d105113d..3194354e6 100644
--- a/data/templates/ocserv/ocserv_config.j2
+++ b/data/templates/ocserv/ocserv_config.j2
@@ -1,5 +1,9 @@
### generated by vpn_openconnect.py ###
+{% if listen_address is vyos_defined %}
+listen-host = {{ listen_address }}
+{% endif %}
+
tcp-port = {{ listen_ports.tcp }}
udp-port = {{ listen_ports.udp }}