fixes the search for tls-crypt-v2
This commit is contained in:
parent
f0fa87e956
commit
3fba039378
1 changed files with 4 additions and 4 deletions
|
@ -1125,12 +1125,12 @@ function newClient() {
|
|||
fi
|
||||
|
||||
# Determine if we use tls-auth or tls-crypt
|
||||
if grep -qs "^tls-crypt" /etc/openvpn/server.conf; then
|
||||
TLS_SIG="1"
|
||||
if grep -qs "^tls-crypt-v2" /etc/openvpn/server.conf; then
|
||||
TLS_SIG="3"
|
||||
elif grep -qs "^tls-auth" /etc/openvpn/server.conf; then
|
||||
TLS_SIG="2"
|
||||
else grep -qs "^tls-crypt-v2" /etc/openvpn/server.conf;
|
||||
TLS_SIG="3"
|
||||
else grep -qs "^tls-crypt" /etc/openvpn/server.conf;
|
||||
TLS_SIG="1"
|
||||
fi
|
||||
|
||||
# Generates the custom client.ovpn
|
||||
|
|
Loading…
Reference in a new issue