summaryrefslogtreecommitdiff
path: root/data/templates/ocserv/ocserv_config.j2
diff options
context:
space:
mode:
authorJamie Austin <jamieaustinprogramming@gmail.com>2023-01-28 01:13:25 +1100
committerJamie Austin <jamieaustinprogramming@gmail.com>2023-01-28 15:11:07 +1100
commit9db8c197ab170d18a93d70fca4227e802a7154c1 (patch)
tree54836f6bf75ef0782ea07433d5b3c236f371453d /data/templates/ocserv/ocserv_config.j2
parente61f7abdb2136d8dfbf73729dbc14c3b5ab2ecba (diff)
downloadvyos-1x-9db8c197ab170d18a93d70fca4227e802a7154c1.tar.gz
vyos-1x-9db8c197ab170d18a93d70fca4227e802a7154c1.zip
T4958: ocserv: openconnect: refactor RADIUS accounting support
Diffstat (limited to 'data/templates/ocserv/ocserv_config.j2')
-rw-r--r--data/templates/ocserv/ocserv_config.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/ocserv/ocserv_config.j2 b/data/templates/ocserv/ocserv_config.j2
index aa8897703..aa1073bca 100644
--- a/data/templates/ocserv/ocserv_config.j2
+++ b/data/templates/ocserv/ocserv_config.j2
@@ -10,7 +10,7 @@ udp-port = {{ listen_ports.udp }}
run-as-user = nobody
run-as-group = daemon
-{% if "radius" in accounting.mode %}
+{% if accounting.mode.radius is vyos_defined %}
acct = "radius [config=/run/ocserv/radiusclient.conf]"
{% endif %}