Surfshark changed ovpn names again

from something like this:
rgb_nl-ams.prod.surfshark.com_udp.ovpn

to
nl-ams.prod.surfshark.com_udp.ovpn
This commit is contained in:
malua
2023-08-31 13:09:31 +02:00
committed by GitHub
parent 606454c366
commit 4efb8a063e

View File

@@ -6,7 +6,7 @@ if [ -z "${OVPN_CONFIGS}" ]; then
fi
unzip "${OVPN_CONFIGS}" -d ovpn_configs
cd ovpn_configs
VPN_FILE=$(ls *_"${SURFSHARK_COUNTRY}"* | grep "${SURFSHARK_CITY}" | grep "${CONNECTION_TYPE}" | shuf | head -n 1)
VPN_FILE=$(ls *"${SURFSHARK_COUNTRY}"-* | grep "${SURFSHARK_CITY}" | grep "${CONNECTION_TYPE}" | shuf | head -n 1)
echo Chose: ${VPN_FILE}
printf "${SURFSHARK_USER}\n${SURFSHARK_PASSWORD}" > vpn-auth.txt
@@ -46,4 +46,4 @@ if [ "${ENABLE_KILL_SWITCH}" = "true" ]; then
ufw default deny outgoing
ufw allow out on tun0 from any to any
ufw enable
fi
fi