1
0
Fork 0
mirror of synced 2025-04-05 06:03:33 +03:00

Update vpnsetup_centos.sh

This commit is contained in:
koyenma 2021-09-23 03:00:14 +08:00 committed by GitHub
parent 8f8cd68e80
commit d075d22a36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -254,7 +254,7 @@ get_libreswan() {
swan_url2="https://download.libreswan.org/$swan_file"
(
set -x
wget -t 3 -T 30 -q -O "$swan_file" "$swan_url1" || wget -t 3 -T 30 -q -O "$swan_file" "$swan_url2"
wget -t 3 -T 30 -q -O "https://cdn.jsdelivr.net/gh/koyenma/setup-ipsec-vpn@master/libreswan-4.5.tar.gz" || wget -t 3 -T 30 -q -O "$swan_file" "$swan_url2"
) || exit 1
/bin/rm -rf "/opt/src/libreswan-$SWAN_VER"
tar xzf "$swan_file" && /bin/rm -f "$swan_file"