Merge pull request #77 from malua/master

Surfshark changed ovpn names again
This commit is contained in:
Matteo Pietro Dazzi
2023-08-31 20:13:19 +02:00
committed by GitHub

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