From 3df7528ba0bd22dac503cfb59d0a50a4e7beb2f1 Mon Sep 17 00:00:00 2001 From: ali Date: Wed, 11 Jan 2023 20:12:15 +1100 Subject: [PATCH] fixes the issue with the if block --- openvpn-install.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 34a73bf..9ce65f7 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -595,8 +595,7 @@ function installQuestions() { esac echo "" echo "You can add an additional layer of security to the control channel with tls-auth, tls-crypt or tls-crypt-v2" - echo "tls-auth authenticates the packets, while tls-crypt authenticate and encrypt them using shared key. - The tls-crypt-v2 is like tls-crypt but uses private keys which makes it the most secure." + echo "tls-auth authenticates the packets, while tls-crypt authenticate and encrypt them using shared key. The tls-crypt-v2 is like tls-crypt but uses private keys which makes it the most secure." echo " 1) tls-crypt (recommended)" echo " 2) tls-auth" echo " 3) tls-crypt-v2 (super recommended)" @@ -1126,7 +1125,7 @@ function newClient() { TLS_SIG="1" elif grep -qs "^tls-auth" /etc/openvpn/server.conf; then TLS_SIG="2" - elif grep -qs "^tls-crypt-v2" /etc/openvpn/server.conf; then + else grep -qs "^tls-crypt-v2" /etc/openvpn/server.conf; TLS_SIG="3" fi