Compare commits
7 Commits
3e343f9d3c
...
7e85c81ddb
Author | SHA1 | Date | |
---|---|---|---|
|
7e85c81ddb | ||
|
58efbe1575 | ||
|
c8bb2bc36c | ||
|
d522d42ba3 | ||
|
0b5b415296 | ||
|
16f5a1d81f | ||
|
a794200306 |
8
.github/workflows/test_set_1.yml
vendored
8
.github/workflows/test_set_1.yml
vendored
@ -518,13 +518,13 @@ jobs:
|
|||||||
cp -f /opt/src/scripts/extras/vpnupgrade.sh ./vpnup.sh
|
cp -f /opt/src/scripts/extras/vpnupgrade.sh ./vpnup.sh
|
||||||
sed -i '/curl /a sed -i "/swan_ver_latest=/s/^/#/" "$tmpdir/vpnup.sh"' vpnup.sh
|
sed -i '/curl /a sed -i "/swan_ver_latest=/s/^/#/" "$tmpdir/vpnup.sh"' vpnup.sh
|
||||||
|
|
||||||
for ver in 4.9 ""; do
|
for ver in 4.10 ""; do
|
||||||
sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh
|
sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh
|
||||||
bash vpnup.sh <<ANSWERS
|
bash vpnup.sh <<ANSWERS
|
||||||
|
|
||||||
ANSWERS
|
ANSWERS
|
||||||
restart_ipsec
|
restart_ipsec
|
||||||
[ -z "$ver" ] && ver=4.11
|
[ -z "$ver" ] && ver=4.12
|
||||||
ipsec --version | grep "$ver"
|
ipsec --version | grep "$ver"
|
||||||
ipsec status | grep -q l2tp-psk
|
ipsec status | grep -q l2tp-psk
|
||||||
ipsec status | grep -q xauth-psk
|
ipsec status | grep -q xauth-psk
|
||||||
@ -538,13 +538,13 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
sed -i '/swan_ver_latest=/s/^/#/' vpnup.sh
|
sed -i '/swan_ver_latest=/s/^/#/' vpnup.sh
|
||||||
|
|
||||||
for ver in 4.10 ""; do
|
for ver in 4.11 ""; do
|
||||||
sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh
|
sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh
|
||||||
bash vpnup.sh <<ANSWERS
|
bash vpnup.sh <<ANSWERS
|
||||||
|
|
||||||
ANSWERS
|
ANSWERS
|
||||||
restart_ipsec
|
restart_ipsec
|
||||||
[ -z "$ver" ] && ver=4.11
|
[ -z "$ver" ] && ver=4.12
|
||||||
ipsec --version | grep "$ver"
|
ipsec --version | grep "$ver"
|
||||||
ipsec status | grep -q l2tp-psk
|
ipsec status | grep -q l2tp-psk
|
||||||
ipsec status | grep -q xauth-psk
|
ipsec status | grep -q xauth-psk
|
||||||
|
10
.github/workflows/test_set_2.yml
vendored
10
.github/workflows/test_set_2.yml
vendored
@ -17,7 +17,7 @@ jobs:
|
|||||||
if: github.repository_owner == 'hwdsl2'
|
if: github.repository_owner == 'hwdsl2'
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os_version: ["ubuntu:22.04", "ubuntu:20.04", "ubuntu:18.04", "debian:12", "debian:11", "debian:10", "alpine:3.17", "alpine:3.16"]
|
os_version: ["ubuntu:22.04", "ubuntu:20.04", "ubuntu:18.04", "debian:12", "debian:11", "debian:10", "alpine:3.17", "alpine:3.18"]
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
container:
|
container:
|
||||||
image: ${{ matrix.os_version }}
|
image: ${{ matrix.os_version }}
|
||||||
@ -491,7 +491,7 @@ jobs:
|
|||||||
cp -f "$GITHUB_WORKSPACE"/extras/vpnupgrade.sh ./vpnup.sh
|
cp -f "$GITHUB_WORKSPACE"/extras/vpnupgrade.sh ./vpnup.sh
|
||||||
sed -i '/curl /a sed -i "/swan_ver_latest=/s/^/#/" "$tmpdir/vpnup.sh"' vpnup.sh
|
sed -i '/curl /a sed -i "/swan_ver_latest=/s/^/#/" "$tmpdir/vpnup.sh"' vpnup.sh
|
||||||
|
|
||||||
for ver in 4.9 ""; do
|
for ver in 4.10 ""; do
|
||||||
if [ "$os_type" = "alpine" ]; then
|
if [ "$os_type" = "alpine" ]; then
|
||||||
ipsec whack --shutdown || true
|
ipsec whack --shutdown || true
|
||||||
fi
|
fi
|
||||||
@ -500,7 +500,7 @@ jobs:
|
|||||||
|
|
||||||
ANSWERS
|
ANSWERS
|
||||||
restart_ipsec
|
restart_ipsec
|
||||||
[ -z "$ver" ] && ver=4.11
|
[ -z "$ver" ] && ver=4.12
|
||||||
ipsec --version | grep "$ver"
|
ipsec --version | grep "$ver"
|
||||||
ipsec status | grep -q l2tp-psk
|
ipsec status | grep -q l2tp-psk
|
||||||
ipsec status | grep -q xauth-psk
|
ipsec status | grep -q xauth-psk
|
||||||
@ -514,7 +514,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
sed -i '/swan_ver_latest=/s/^/#/' vpnup.sh
|
sed -i '/swan_ver_latest=/s/^/#/' vpnup.sh
|
||||||
|
|
||||||
for ver in 4.10 ""; do
|
for ver in 4.11 ""; do
|
||||||
if [ "$os_type" = "alpine" ]; then
|
if [ "$os_type" = "alpine" ]; then
|
||||||
ipsec whack --shutdown || true
|
ipsec whack --shutdown || true
|
||||||
fi
|
fi
|
||||||
@ -523,7 +523,7 @@ jobs:
|
|||||||
|
|
||||||
ANSWERS
|
ANSWERS
|
||||||
restart_ipsec
|
restart_ipsec
|
||||||
[ -z "$ver" ] && ver=4.11
|
[ -z "$ver" ] && ver=4.12
|
||||||
ipsec --version | grep "$ver"
|
ipsec --version | grep "$ver"
|
||||||
ipsec status | grep -q l2tp-psk
|
ipsec status | grep -q l2tp-psk
|
||||||
ipsec status | grep -q xauth-psk
|
ipsec status | grep -q xauth-psk
|
||||||
|
@ -266,7 +266,7 @@ sudo ikev2.sh
|
|||||||
|
|
||||||
**[配置 IPsec/XAuth ("Cisco IPsec") VPN 客户端](docs/clients-xauth-zh.md)**
|
**[配置 IPsec/XAuth ("Cisco IPsec") VPN 客户端](docs/clients-xauth-zh.md)**
|
||||||
|
|
||||||
**阅读 [:book: VPN book](https://books2read.com/vpnzh) 以访问 [额外内容](https://ko-fi.com/post/Support-this-project-and-get-access-to-supporter-o-X8X5FVFZC)。**
|
**阅读 [:book: VPN book](https://ko-fi.com/post/Support-this-project-and-get-access-to-supporter-o-X8X5FVFZC) 以访问 [额外内容](https://ko-fi.com/post/Support-this-project-and-get-access-to-supporter-o-X8X5FVFZC)。**
|
||||||
|
|
||||||
开始使用自己的专属 VPN! :sparkles::tada::rocket::sparkles:
|
开始使用自己的专属 VPN! :sparkles::tada::rocket::sparkles:
|
||||||
|
|
||||||
@ -313,7 +313,7 @@ https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/extras/vpnupgrade.sh
|
|||||||
如果无法下载,打开 [vpnupgrade.sh](extras/vpnupgrade.sh),然后点击右边的 `Raw` 按钮。按快捷键 `Ctrl/Cmd+A` 全选,`Ctrl/Cmd+C` 复制,然后粘贴到你喜欢的编辑器。
|
如果无法下载,打开 [vpnupgrade.sh](extras/vpnupgrade.sh),然后点击右边的 `Raw` 按钮。按快捷键 `Ctrl/Cmd+A` 全选,`Ctrl/Cmd+C` 复制,然后粘贴到你喜欢的编辑器。
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
当前支持的 Libreswan 最新版本是 `4.11`。查看已安装版本:`ipsec --version`。
|
当前支持的 Libreswan 最新版本是 `4.12`。查看已安装版本:`ipsec --version`。
|
||||||
|
|
||||||
**注:** `xl2tpd` 可以使用系统的软件包管理器进行更新,例如 Ubuntu/Debian 上的 `apt-get`。
|
**注:** `xl2tpd` 可以使用系统的软件包管理器进行更新,例如 Ubuntu/Debian 上的 `apt-get`。
|
||||||
|
|
||||||
|
@ -266,7 +266,7 @@ Get your computer or device to use the VPN. Please refer to:
|
|||||||
|
|
||||||
**[Configure IPsec/XAuth ("Cisco IPsec") VPN Clients](docs/clients-xauth.md)**
|
**[Configure IPsec/XAuth ("Cisco IPsec") VPN Clients](docs/clients-xauth.md)**
|
||||||
|
|
||||||
**Read [:book: VPN book](https://books2read.com/vpn) to access [extra content](https://ko-fi.com/post/Support-this-project-and-get-access-to-supporter-o-O5O7FVF8J).**
|
**Read [:book: VPN book](https://ko-fi.com/post/Support-this-project-and-get-access-to-supporter-o-O5O7FVF8J) to access [extra content](https://ko-fi.com/post/Support-this-project-and-get-access-to-supporter-o-O5O7FVF8J).**
|
||||||
|
|
||||||
Enjoy your very own VPN! :sparkles::tada::rocket::sparkles:
|
Enjoy your very own VPN! :sparkles::tada::rocket::sparkles:
|
||||||
|
|
||||||
@ -313,7 +313,7 @@ https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/extras/vpnupgrade.sh
|
|||||||
If you are unable to download, open [vpnupgrade.sh](extras/vpnupgrade.sh), then click the `Raw` button on the right. Press `Ctrl/Cmd+A` to select all, `Ctrl/Cmd+C` to copy, then paste into your favorite editor.
|
If you are unable to download, open [vpnupgrade.sh](extras/vpnupgrade.sh), then click the `Raw` button on the right. Press `Ctrl/Cmd+A` to select all, `Ctrl/Cmd+C` to copy, then paste into your favorite editor.
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
The latest supported Libreswan version is `4.11`. Check installed version: `ipsec --version`.
|
The latest supported Libreswan version is `4.12`. Check installed version: `ipsec --version`.
|
||||||
|
|
||||||
**Note:** `xl2tpd` can be updated using your system's package manager, such as `apt-get` on Ubuntu/Debian.
|
**Note:** `xl2tpd` can be updated using your system's package manager, such as `apt-get` on Ubuntu/Debian.
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ Libreswan 支持通过使用 RSA 签名算法的 X.509 Machine Certificates 来
|
|||||||
在某些情况下,你可能需要更改 IKEv2 服务器地址,例如切换为使用域名,或者在服务器的 IP 更改之后。要了解更多信息,参见 [这一小节](#更改-ikev2-服务器地址)。
|
在某些情况下,你可能需要更改 IKEv2 服务器地址,例如切换为使用域名,或者在服务器的 IP 更改之后。要了解更多信息,参见 [这一小节](#更改-ikev2-服务器地址)。
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
**阅读 [:book: VPN book](https://books2read.com/vpnzh) 以访问 [额外内容](https://ko-fi.com/post/Support-this-project-and-get-access-to-supporter-o-X8X5FVFZC)。**
|
**阅读 [:book: VPN book](https://ko-fi.com/post/Support-this-project-and-get-access-to-supporter-o-X8X5FVFZC) 以访问 [额外内容](https://ko-fi.com/post/Support-this-project-and-get-access-to-supporter-o-X8X5FVFZC)。**
|
||||||
|
|
||||||
### Windows 7, 8, 10 和 11
|
### Windows 7, 8, 10 和 11
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ Learn how to change the IKEv2 server address.
|
|||||||
In certain circumstances, you may need to change the IKEv2 server address. For example, to switch to use a DNS name, or after server IP changes. Learn more in [this section](#change-ikev2-server-address).
|
In certain circumstances, you may need to change the IKEv2 server address. For example, to switch to use a DNS name, or after server IP changes. Learn more in [this section](#change-ikev2-server-address).
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
**Read [:book: VPN book](https://books2read.com/vpn) to access [extra content](https://ko-fi.com/post/Support-this-project-and-get-access-to-supporter-o-O5O7FVF8J).**
|
**Read [:book: VPN book](https://ko-fi.com/post/Support-this-project-and-get-access-to-supporter-o-O5O7FVF8J) to access [extra content](https://ko-fi.com/post/Support-this-project-and-get-access-to-supporter-o-O5O7FVF8J).**
|
||||||
|
|
||||||
### Windows 7, 8, 10 and 11
|
### Windows 7, 8, 10 and 11
|
||||||
|
|
||||||
|
@ -96,8 +96,8 @@ EOF
|
|||||||
esac
|
esac
|
||||||
if [ "$os_type" = "alpine" ]; then
|
if [ "$os_type" = "alpine" ]; then
|
||||||
os_ver=$(. /etc/os-release && printf '%s' "$VERSION_ID" | cut -d '.' -f 1,2)
|
os_ver=$(. /etc/os-release && printf '%s' "$VERSION_ID" | cut -d '.' -f 1,2)
|
||||||
if [ "$os_ver" != "3.16" ] && [ "$os_ver" != "3.17" ]; then
|
if [ "$os_ver" != "3.17" ] && [ "$os_ver" != "3.18" ]; then
|
||||||
exiterr "This script only supports Alpine Linux 3.16/3.17."
|
exiterr "This script only supports Alpine Linux 3.17/3.18."
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
os_ver=$(sed 's/\..*//' /etc/debian_version | tr -dc 'A-Za-z0-9')
|
os_ver=$(sed 's/\..*//' /etc/debian_version | tr -dc 'A-Za-z0-9')
|
||||||
@ -157,7 +157,7 @@ confirm_or_abort() {
|
|||||||
show_header() {
|
show_header() {
|
||||||
cat <<'EOF'
|
cat <<'EOF'
|
||||||
|
|
||||||
IKEv2 Script Copyright (c) 2020-2023 Lin Song 11 Feb 2023
|
IKEv2 Script Copyright (c) 2020-2023 Lin Song 11 Aug 2023
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
@ -122,8 +122,8 @@ EOF
|
|||||||
esac
|
esac
|
||||||
if [ "$os_type" = "alpine" ]; then
|
if [ "$os_type" = "alpine" ]; then
|
||||||
os_ver=$(. /etc/os-release && printf '%s' "$VERSION_ID" | cut -d '.' -f 1,2)
|
os_ver=$(. /etc/os-release && printf '%s' "$VERSION_ID" | cut -d '.' -f 1,2)
|
||||||
if [ "$os_ver" != "3.16" ] && [ "$os_ver" != "3.17" ]; then
|
if [ "$os_ver" != "3.17" ] && [ "$os_ver" != "3.18" ]; then
|
||||||
exiterr "This script only supports Alpine Linux 3.16/3.17."
|
exiterr "This script only supports Alpine Linux 3.17/3.18."
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
os_ver=$(sed 's/\..*//' /etc/debian_version | tr -dc 'A-Za-z0-9')
|
os_ver=$(sed 's/\..*//' /etc/debian_version | tr -dc 'A-Za-z0-9')
|
||||||
|
@ -90,8 +90,8 @@ EOF
|
|||||||
esac
|
esac
|
||||||
if [ "$os_type" = "alpine" ]; then
|
if [ "$os_type" = "alpine" ]; then
|
||||||
os_ver=$(. /etc/os-release && printf '%s' "$VERSION_ID" | cut -d '.' -f 1,2)
|
os_ver=$(. /etc/os-release && printf '%s' "$VERSION_ID" | cut -d '.' -f 1,2)
|
||||||
if [ "$os_ver" != "3.16" ] && [ "$os_ver" != "3.17" ]; then
|
if [ "$os_ver" != "3.17" ] && [ "$os_ver" != "3.18" ]; then
|
||||||
exiterr "This script only supports Alpine Linux 3.16/3.17."
|
exiterr "This script only supports Alpine Linux 3.17/3.18."
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
os_ver=$(sed 's/\..*//' /etc/debian_version | tr -dc 'A-Za-z0-9')
|
os_ver=$(sed 's/\..*//' /etc/debian_version | tr -dc 'A-Za-z0-9')
|
||||||
|
@ -51,8 +51,8 @@ check_os() {
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
os_ver=$(. /etc/os-release && printf '%s' "$VERSION_ID" | cut -d '.' -f 1,2)
|
os_ver=$(. /etc/os-release && printf '%s' "$VERSION_ID" | cut -d '.' -f 1,2)
|
||||||
if [ "$os_ver" != "3.16" ] && [ "$os_ver" != "3.17" ]; then
|
if [ "$os_ver" != "3.17" ] && [ "$os_ver" != "3.18" ]; then
|
||||||
exiterr "This script only supports Alpine Linux 3.16/3.17."
|
exiterr "This script only supports Alpine Linux 3.17/3.18."
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -69,7 +69,7 @@ EOF
|
|||||||
}
|
}
|
||||||
|
|
||||||
get_swan_ver() {
|
get_swan_ver() {
|
||||||
swan_ver_cur=4.11
|
swan_ver_cur=4.12
|
||||||
base_url="https://github.com/hwdsl2/vpn-extras/releases/download/v1.0.0"
|
base_url="https://github.com/hwdsl2/vpn-extras/releases/download/v1.0.0"
|
||||||
swan_ver_url="$base_url/upg-v1-$os_type-$os_ver-swanver"
|
swan_ver_url="$base_url/upg-v1-$os_type-$os_ver-swanver"
|
||||||
swan_ver_latest=$(wget -t 2 -T 10 -qO- "$swan_ver_url" | head -n 1)
|
swan_ver_latest=$(wget -t 2 -T 10 -qO- "$swan_ver_url" | head -n 1)
|
||||||
|
@ -52,7 +52,7 @@ EOF
|
|||||||
}
|
}
|
||||||
|
|
||||||
get_swan_ver() {
|
get_swan_ver() {
|
||||||
swan_ver_cur=4.11
|
swan_ver_cur=4.12
|
||||||
base_url="https://github.com/hwdsl2/vpn-extras/releases/download/v1.0.0"
|
base_url="https://github.com/hwdsl2/vpn-extras/releases/download/v1.0.0"
|
||||||
swan_ver_url="$base_url/upg-v1-amzn-2-swanver"
|
swan_ver_url="$base_url/upg-v1-amzn-2-swanver"
|
||||||
swan_ver_latest=$(wget -t 2 -T 10 -qO- "$swan_ver_url" | head -n 1)
|
swan_ver_latest=$(wget -t 2 -T 10 -qO- "$swan_ver_url" | head -n 1)
|
||||||
|
@ -85,7 +85,7 @@ EOF
|
|||||||
}
|
}
|
||||||
|
|
||||||
get_swan_ver() {
|
get_swan_ver() {
|
||||||
swan_ver_cur=4.11
|
swan_ver_cur=4.12
|
||||||
base_url="https://github.com/hwdsl2/vpn-extras/releases/download/v1.0.0"
|
base_url="https://github.com/hwdsl2/vpn-extras/releases/download/v1.0.0"
|
||||||
swan_ver_url="$base_url/upg-v1-$os_type-$os_ver-swanver"
|
swan_ver_url="$base_url/upg-v1-$os_type-$os_ver-swanver"
|
||||||
swan_ver_latest=$(wget -t 2 -T 10 -qO- "$swan_ver_url" | head -n 1)
|
swan_ver_latest=$(wget -t 2 -T 10 -qO- "$swan_ver_url" | head -n 1)
|
||||||
|
@ -84,7 +84,7 @@ EOF
|
|||||||
}
|
}
|
||||||
|
|
||||||
get_swan_ver() {
|
get_swan_ver() {
|
||||||
swan_ver_cur=4.11
|
swan_ver_cur=4.12
|
||||||
base_url="https://github.com/hwdsl2/vpn-extras/releases/download/v1.0.0"
|
base_url="https://github.com/hwdsl2/vpn-extras/releases/download/v1.0.0"
|
||||||
swan_ver_url="$base_url/upg-v1-$os_type-$os_ver-swanver"
|
swan_ver_url="$base_url/upg-v1-$os_type-$os_ver-swanver"
|
||||||
swan_ver_latest=$(wget -t 2 -T 10 -qO- "$swan_ver_url" | head -n 1)
|
swan_ver_latest=$(wget -t 2 -T 10 -qO- "$swan_ver_url" | head -n 1)
|
||||||
|
@ -122,8 +122,8 @@ EOF
|
|||||||
esac
|
esac
|
||||||
if [ "$os_type" = "alpine" ]; then
|
if [ "$os_type" = "alpine" ]; then
|
||||||
os_ver=$(. /etc/os-release && printf '%s' "$VERSION_ID" | cut -d '.' -f 1,2)
|
os_ver=$(. /etc/os-release && printf '%s' "$VERSION_ID" | cut -d '.' -f 1,2)
|
||||||
if [ "$os_ver" != "3.16" ] && [ "$os_ver" != "3.17" ]; then
|
if [ "$os_ver" != "3.17" ] && [ "$os_ver" != "3.18" ]; then
|
||||||
exiterr "This script only supports Alpine Linux 3.16/3.17."
|
exiterr "This script only supports Alpine Linux 3.17/3.18."
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
os_ver=$(sed 's/\..*//' /etc/debian_version | tr -dc 'A-Za-z0-9')
|
os_ver=$(sed 's/\..*//' /etc/debian_version | tr -dc 'A-Za-z0-9')
|
||||||
|
@ -70,8 +70,8 @@ check_os() {
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
os_ver=$(. /etc/os-release && printf '%s' "$VERSION_ID" | cut -d '.' -f 1,2)
|
os_ver=$(. /etc/os-release && printf '%s' "$VERSION_ID" | cut -d '.' -f 1,2)
|
||||||
if [ "$os_ver" != "3.16" ] && [ "$os_ver" != "3.17" ]; then
|
if [ "$os_ver" != "3.17" ] && [ "$os_ver" != "3.18" ]; then
|
||||||
exiterr "This script only supports Alpine Linux 3.16/3.17."
|
exiterr "This script only supports Alpine Linux 3.17/3.18."
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -240,7 +240,7 @@ get_helper_scripts() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get_swan_ver() {
|
get_swan_ver() {
|
||||||
SWAN_VER=4.11
|
SWAN_VER=4.12
|
||||||
base_url="https://github.com/hwdsl2/vpn-extras/releases/download/v1.0.0"
|
base_url="https://github.com/hwdsl2/vpn-extras/releases/download/v1.0.0"
|
||||||
swan_ver_url="$base_url/v1-$os_type-$os_ver-swanver"
|
swan_ver_url="$base_url/v1-$os_type-$os_ver-swanver"
|
||||||
swan_ver_latest=$(wget -t 2 -T 10 -qO- "$swan_ver_url" | head -n 1)
|
swan_ver_latest=$(wget -t 2 -T 10 -qO- "$swan_ver_url" | head -n 1)
|
||||||
|
@ -258,7 +258,7 @@ get_helper_scripts() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get_swan_ver() {
|
get_swan_ver() {
|
||||||
SWAN_VER=4.11
|
SWAN_VER=4.12
|
||||||
base_url="https://github.com/hwdsl2/vpn-extras/releases/download/v1.0.0"
|
base_url="https://github.com/hwdsl2/vpn-extras/releases/download/v1.0.0"
|
||||||
swan_ver_url="$base_url/v1-amzn-2-swanver"
|
swan_ver_url="$base_url/v1-amzn-2-swanver"
|
||||||
swan_ver_latest=$(wget -t 2 -T 10 -qO- "$swan_ver_url" | head -n 1)
|
swan_ver_latest=$(wget -t 2 -T 10 -qO- "$swan_ver_url" | head -n 1)
|
||||||
|
@ -360,7 +360,7 @@ get_helper_scripts() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get_swan_ver() {
|
get_swan_ver() {
|
||||||
SWAN_VER=4.11
|
SWAN_VER=4.12
|
||||||
base_url="https://github.com/hwdsl2/vpn-extras/releases/download/v1.0.0"
|
base_url="https://github.com/hwdsl2/vpn-extras/releases/download/v1.0.0"
|
||||||
swan_ver_url="$base_url/v1-$os_type-$os_ver-swanver"
|
swan_ver_url="$base_url/v1-$os_type-$os_ver-swanver"
|
||||||
swan_ver_latest=$(wget -t 2 -T 10 -qO- "$swan_ver_url" | head -n 1)
|
swan_ver_latest=$(wget -t 2 -T 10 -qO- "$swan_ver_url" | head -n 1)
|
||||||
|
@ -344,7 +344,7 @@ get_helper_scripts() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get_swan_ver() {
|
get_swan_ver() {
|
||||||
SWAN_VER=4.11
|
SWAN_VER=4.12
|
||||||
base_url="https://github.com/hwdsl2/vpn-extras/releases/download/v1.0.0"
|
base_url="https://github.com/hwdsl2/vpn-extras/releases/download/v1.0.0"
|
||||||
swan_ver_url="$base_url/v1-$os_type-$os_ver-swanver"
|
swan_ver_url="$base_url/v1-$os_type-$os_ver-swanver"
|
||||||
swan_ver_latest=$(wget -t 2 -T 10 -qO- "$swan_ver_url" | head -n 1)
|
swan_ver_latest=$(wget -t 2 -T 10 -qO- "$swan_ver_url" | head -n 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user