Fix for invalid URLs generated when setting OPENVPN_CONFIG #1332

This commit is contained in:
Kristian Haugene
2020-08-23 20:26:52 +02:00
parent d42b708a17
commit 0a47b44447

View File

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