|
@@ -38,9 +38,9 @@ proto_openconnect_setup() {
|
38
|
38
|
|
39
|
39
|
cmdline="$server$port -i vpn-$config --non-inter --syslog --script /lib/netifd/vpnc-script"
|
40
|
40
|
|
41
|
|
- [ -f /etc/openconnect/ca.pem ] && append cmdline "--cafile /etc/openconnect/ca.pem"
|
42
|
|
- [ -f /etc/openconnect/user-cert.pem ] && append cmdline "-c /etc/openconnect/user-cert.pem"
|
43
|
|
- [ -f /etc/openconnect/user-key.pem ] && append cmdline "--sslkey /etc/openconnect/user-key.pem"
|
|
41
|
+ [ -f /etc/openconnect/ca-vpn-$config.pem ] && append cmdline "--cafile /etc/openconnect/ca-vpn-$config.pem"
|
|
42
|
+ [ -f /etc/openconnect/user-cert-vpn-$config.pem ] && append cmdline "-c /etc/openconnect/user-cert-vpn-$config.pem"
|
|
43
|
+ [ -f /etc/openconnect/user-key-vpn-$config.pem ] && append cmdline "--sslkey /etc/openconnect/user-key-vpn-$config.pem"
|
44
|
44
|
[ -n "$serverhash" ] && append cmdline "--servercert=$serverhash"
|
45
|
45
|
[ -n "$authgroup" ] && append cmdline "--authgroup $authgroup"
|
46
|
46
|
[ -n "$username" ] && append cmdline "-u $username"
|