Fix for automatic setting of NORDVPN_PROTOCOL

NORDVPN_PROTOCOL wasn't being set correctly when an OPENVPN_CONFIG was provided. Now fixed.
This commit is contained in:
Tom Humphrey
2019-03-27 13:09:43 +00:00
parent 615624af0b
commit 43da3ea5f6
2 changed files with 7 additions and 3 deletions

View File

@@ -43,7 +43,9 @@ then
if [[ ! -z $OPENVPN_CONFIG ]]
then
export NORDVPN_CATEGORY="${OPENVPN_CONFIG##*.^^}"
tmp_Protocol="${OPENVPN_CONFIG##*.}"
export NORDVPN_PROTOCOL=${tmp_Protocol^^}
echo "Setting NORDVPN_PROTOCOL to: ${NORDVPN_PROTOCOL}"
${VPN_PROVIDER_CONFIGS}/updateConfigs.sh --openvpn-config
elif [[ ! -z $NORDVPN_COUNTRY ]]
then