mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 19:02:09 +00:00
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 <fe@dev.tdt.de>
This commit is contained in:
committed by
Florian Eckert
parent
a5b3ecfbcf
commit
9ccb8650fd
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user