From ecb2a4077f90e6e4699c8250bcf8f7d6221d9fc6 Mon Sep 17 00:00:00 2001 From: Demon_H Date: Fri, 16 Sep 2022 15:23:52 +0800 Subject: ocserv: openconnect: T4656: add listen-address CLI option This will set the listen-host ocserv configuration option. --- data/templates/ocserv/ocserv_config.j2 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'data/templates/ocserv/ocserv_config.j2') 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 }} -- cgit v1.2.3