Fix for invalid URLs generated when setting OPENVPN_CONFIG #1332
This commit is contained in:
@@ -43,9 +43,7 @@ then
|
|||||||
|
|
||||||
if [[ -n $OPENVPN_CONFIG ]]
|
if [[ -n $OPENVPN_CONFIG ]]
|
||||||
then
|
then
|
||||||
tmp_Protocol="${OPENVPN_CONFIG##*.}"
|
echo "Downloading user specified config. NORDVPN_PROTOCOL is set to: ${NORDVPN_PROTOCOL}"
|
||||||
export NORDVPN_PROTOCOL=${tmp_Protocol^^}
|
|
||||||
echo "Setting NORDVPN_PROTOCOL to: ${NORDVPN_PROTOCOL}"
|
|
||||||
${VPN_PROVIDER_CONFIGS}/updateConfigs.sh --openvpn-config
|
${VPN_PROVIDER_CONFIGS}/updateConfigs.sh --openvpn-config
|
||||||
elif [[ -n $NORDVPN_COUNTRY ]]
|
elif [[ -n $NORDVPN_COUNTRY ]]
|
||||||
then
|
then
|
||||||
|
Reference in New Issue
Block a user