From 9f7663303fb8412ff16cb72ca296ea67bfe3dee1 Mon Sep 17 00:00:00 2001 From: Angristan Date: Sun, 17 Sep 2017 15:46:47 +0200 Subject: [PATCH] Fix if --- openvpn-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 3702ab4..3e881db 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -424,9 +424,9 @@ else ;; esac fi - if [[ $CIPHER = "1" && $CIPHER = "2" && $CIPHER = "3" ]]; then + if [[ $CIPHER = "cipher AES-256-GCM" ]] || [[ $CIPHER = "cipher AES-192-GCM" ]] || [[ $CIPHER = "cipher AES-128-GCM" ]]; then echo "Choose which message digest algorithm you want to use for the tls-auth/tls-crypt control channel packets:" - elif [[ $CIPHER = "4" && $CIPHER = "5" && $CIPHER = "6" ]]; then + elif [[ $CIPHER = "cipher AES-256-CBC" ]] || [[ $CIPHER = "cipher AES-192-CBC" ]] || [[ $CIPHER = "cipher AES-128-CBC" ]]; then echo "Choose which message digest algorithm you want to use for the data channel packets" echo "and the tls-auth/tls-crypt control channel packets:" fi