diff --git a/README-zh.md b/README-zh.md index bbddc02..cd52fc5 100644 --- a/README-zh.md +++ b/README-zh.md @@ -39,7 +39,7 @@ wget https://get.vpnsetup.net -qO vpn.sh && sudo sh vpn.sh
-或者,你也可以使用这些命令。 +或者,你也可以使用以下命令。 你也可以使用 `curl` 下载: @@ -48,11 +48,7 @@ wget https://get.vpnsetup.net -qO vpn.sh && sudo sh vpn.sh curl -fsSL https://get.vpnsetup.net -o vpn.sh && sudo sh vpn.sh ``` -或者,你也可以使用这个链接: - -```bash -curl -fsSL https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/vpnsetup.sh -o vpn.sh && sudo sh vpn.sh -``` +如果无法下载,点[这里](https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/vpnsetup.sh)查看脚本。按快捷键 `Ctrl/Cmd+A` 全选,`Ctrl/Cmd+C` 复制,然后粘贴到你喜欢的编辑器。
@@ -170,7 +166,7 @@ sudo VPN_PROTECT_CONFIG=yes sh vpn.sh
-如果无法通过 wget 下载,点这里查看解决方案。 +如果无法使用 wget 下载,请点这里。 你也可以使用 `curl` 下载。例如: @@ -180,14 +176,7 @@ curl -fL https://get.vpnsetup.net -o vpn.sh sudo sh vpn.sh ``` -或者,你也可以使用这个链接: - -```bash -curl -fL https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/vpnsetup.sh -o vpn.sh -sudo sh vpn.sh -``` - -或者,打开 [vpnsetup.sh](vpnsetup.sh) 并点击右方的 `Raw` 按钮。按快捷键 `Ctrl/Cmd+A` 全选,`Ctrl/Cmd+C` 复制,然后粘贴到你喜欢的编辑器。 +如果无法下载,点[这里](https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/vpnsetup.sh)查看脚本。按快捷键 `Ctrl/Cmd+A` 全选,`Ctrl/Cmd+C` 复制,然后粘贴到你喜欢的编辑器。
## 下一步 @@ -233,9 +222,13 @@ wget https://get.vpnsetup.net/upg -qO vpnup.sh && sudo sh vpnup.sh 或者,你也可以使用以下命令。 +你也可以使用 `curl` 下载: + ```bash -wget https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/extras/vpnupgrade.sh -qO vpnup.sh && sudo sh vpnup.sh +curl -fsSL https://get.vpnsetup.net/upg -o vpnup.sh && sudo sh vpnup.sh ``` + +如果无法下载,点[这里](https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/vpnupgrade.sh)查看脚本。按快捷键 `Ctrl/Cmd+A` 全选,`Ctrl/Cmd+C` 复制,然后粘贴到你喜欢的编辑器。 当前支持的 Libreswan 最新版本是 `4.6`。查看已安装版本:`ipsec --version`。 diff --git a/README.md b/README.md index ec90b1d..18e6533 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ Your VPN login details will be randomly generated, and displayed when finished.
-Alternative one-liners. +Alternative one-liner. You may also use `curl` to download: @@ -48,11 +48,7 @@ You may also use `curl` to download: curl -fsSL https://get.vpnsetup.net -o vpn.sh && sudo sh vpn.sh ``` -Alternative setup URL: - -```bash -curl -fsSL https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/vpnsetup.sh -o vpn.sh && sudo sh vpn.sh -``` +If you are unable to download, click [here](https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/vpnsetup.sh) to view the script. Press `Ctrl/Cmd+A` to select all, `Ctrl/Cmd+C` to copy, then paste into your favorite editor.
@@ -180,14 +176,7 @@ curl -fL https://get.vpnsetup.net -o vpn.sh sudo sh vpn.sh ``` -Alternative setup URL: - -```bash -curl -fL https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/vpnsetup.sh -o vpn.sh -sudo sh vpn.sh -``` - -Alternatively, open [vpnsetup.sh](vpnsetup.sh) and 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, click [here](https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/vpnsetup.sh) to view the script. Press `Ctrl/Cmd+A` to select all, `Ctrl/Cmd+C` to copy, then paste into your favorite editor.
## Next steps @@ -233,9 +222,13 @@ wget https://get.vpnsetup.net/upg -qO vpnup.sh && sudo sh vpnup.sh Alternative one-liner. +You may also use `curl` to download: + ```bash -wget https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/extras/vpnupgrade.sh -qO vpnup.sh && sudo sh vpnup.sh +curl -fsSL https://get.vpnsetup.net/upg -o vpnup.sh && sudo sh vpnup.sh ``` + +If you are unable to download, click [here](https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/vpnupgrade.sh) to view the script. Press `Ctrl/Cmd+A` to select all, `Ctrl/Cmd+C` to copy, then paste into your favorite editor. The latest supported Libreswan version is `4.6`. Check installed version: `ipsec --version`.