From: Florian Eckert Date: Thu, 5 Mar 2026 08:08:34 +0000 (+0100) Subject: openvpn: fix auth_user_pass option X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=9ccb8650fd45d3750b5c31c8ad1ef69dc3fef012;p=openwrt-packages.git openvpn: fix auth_user_pass option The variable 'auth_file' is not used in the following programm sequence. It therefore only makes sense to add it as a call parameter via 'append' when calling the the 'proto_run_commmand'. Signed-off-by: Florian Eckert --- diff --git a/net/openvpn/files/lib/netifd/proto/openvpn.sh b/net/openvpn/files/lib/netifd/proto/openvpn.sh index 7a8da999b..b94a80d57 100755 --- a/net/openvpn/files/lib/netifd/proto/openvpn.sh +++ b/net/openvpn/files/lib/netifd/proto/openvpn.sh @@ -139,7 +139,7 @@ proto_openvpn_setup() { umask 022 append exec_params " --auth-user-pass $auth_file" elif [ -n "$auth_user_pass" ]; then - auth_file="$auth_user_pass" + append exec_params " --auth-user-pass $auth_user_pass" fi # shellcheck disable=SC2154