openvpn: proto handler; handle user config file

Handle a user provided config file.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This commit is contained in:
Paul Donald
2026-03-12 14:49:01 +01:00
committed by Hannu Nyman
parent 08bc5a7e90
commit ddb20d9880

View File

@@ -128,6 +128,7 @@ proto_openvpn_setup() {
append exec_params " --status /var/run/openvpn.$config.status"
append exec_params " --syslog openvpn_$config"
append exec_params " --tmp-dir /var/run"
[ -n "$config_file" ] && append exec_params " --config \"$config_file\""
json_get_var ALLOW_DEPRECATED allow_deprecated
[ -z "$ALLOW_DEPRECATED" ] && ALLOW_DEPRECATED=0