From: Paul Donald Date: Thu, 12 Mar 2026 13:49:01 +0000 (+0100) Subject: openvpn: proto handler; handle user config file X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=ddb20d9880ba33ac9505055fa07516549b59e664;p=openwrt-packages.git openvpn: proto handler; handle user config file Handle a user provided config file. Signed-off-by: Paul Donald --- diff --git a/net/openvpn/files/lib/netifd/proto/openvpn.sh b/net/openvpn/files/lib/netifd/proto/openvpn.sh index 33ffdcf5a..6e83aafac 100755 --- a/net/openvpn/files/lib/netifd/proto/openvpn.sh +++ b/net/openvpn/files/lib/netifd/proto/openvpn.sh @@ -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