Browse Source

Merge pull request #14400 from FrederickGeek8/fix-14287

openconnect: Fix secondary password script overwriting primary
lilik-openwrt-22.03
Nikos Mavrogiannopoulos 4 years ago
committed by GitHub
parent
commit
60e7eee859
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      net/openconnect/files/openconnect.sh

+ 1
- 1
net/openconnect/files/openconnect.sh View File

@ -115,7 +115,7 @@ proto_openconnect_setup() {
[ -n "$password2" ] && echo "$password2" >> "$pwfile" [ -n "$password2" ] && echo "$password2" >> "$pwfile"
} }
[ "$token_mode" = "script" ] && { [ "$token_mode" = "script" ] && {
$token_script > "$pwfile" 2> /dev/null || {
$token_script >> "$pwfile" 2> /dev/null || {
logger -t openconenct "Cannot get password from script '$token_script'" logger -t openconenct "Cannot get password from script '$token_script'"
proto_setup_failed "$config" proto_setup_failed "$config"
} }


Loading…
Cancel
Save