diff --git a/extras/ikev2setup.sh b/extras/ikev2setup.sh index 4ca2f94..65d051a 100755 --- a/extras/ikev2setup.sh +++ b/extras/ikev2setup.sh @@ -120,21 +120,18 @@ Error: Your must first set up the IPsec VPN server before setting up IKEv2. EOF exit 1 fi - case $swan_ver in - 3.2[35679]|3.3[12]|4.*) - true - ;; - *) +} + +check_swan_ver() { + if ! printf '%s\n%s' "3.23" "$swan_ver" | sort -C -V; then cat 1>&2 <