openconnect: avoid using the --juniper switch
The --juniper switch has been deprecated in favour of --protocol=nc. Fix the proto script thusly, while keeping compatibility with existing configurations. Note that, as far as UCI is concerned, if both options juniper and vpn_protocol are specified, the latter takes precedence. Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
This commit is contained in:
parent
278a35be9c
commit
a85bda72cc
1 changed files with 3 additions and 3 deletions
|
@ -93,9 +93,9 @@ proto_openconnect_setup() {
|
||||||
append_args --no-system-trust
|
append_args --no-system-trust
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ "${juniper:-0}" -gt 0 ]; then
|
[ "${juniper:-0}" -gt 0 ] && [ -z "$vpn_protocol" ] && {
|
||||||
append_args --juniper
|
vpn_protocol="nc"
|
||||||
fi
|
}
|
||||||
|
|
||||||
[ -n "$vpn_protocol" ] && {
|
[ -n "$vpn_protocol" ] && {
|
||||||
append_args --protocol "$vpn_protocol"
|
append_args --protocol "$vpn_protocol"
|
||||||
|
|
Loading…
Reference in a new issue