From 4efb8a063e1f90d08b8453ce0b707bd9f67f8527 Mon Sep 17 00:00:00 2001 From: malua Date: Thu, 31 Aug 2023 13:09:31 +0200 Subject: [PATCH] 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 --- startup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/startup.sh b/startup.sh index 4500673..ef834d7 100644 --- a/startup.sh +++ b/startup.sh @@ -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 \ No newline at end of file +fi