Merge pull request #851 from IcedComputer/patch-4

Check if -i iOS can be used
This commit is contained in:
4s3ti 2019-10-19 11:58:51 +02:00 committed by GitHub
commit f85086ebfb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,7 +70,13 @@ do
DAYS="$_val" DAYS="$_val"
;; ;;
-i|--iOS) -i|--iOS)
OVPN12_Compatible=$(cat /etc/pivpn/OVPN12_Compatible)
if [[ ${OVPN12_Compatible} == "true" ]]; then
iOS=1 iOS=1
else
echo "This function is not compatable with OVPN 2.4"
exit 1
fi
;; ;;
-h|--help) -h|--help)
helpFunc helpFunc