From d90f72a99b063e201e5c232b393168ffd4209613 Mon Sep 17 00:00:00 2001 From: MINGERTAI <104557080+MINGERTAI@users.noreply.github.com> Date: Thu, 20 Oct 2022 10:12:28 +0800 Subject: [PATCH] Update README.md Signed-off-by: MINGERTAI <104557080+MINGERTAI@users.noreply.github.com> --- README.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c186a3d1..d686640e 100644 --- a/README.md +++ b/README.md @@ -24,16 +24,21 @@ https://github.com/SagerNet/SagerNet ### 安装 sing-box 需要 Golang 1.18.5 或更高版本 -### 安装 Golang -```jaon +#### 安装 Golang +``` cd curl -fsL https://raw.githubusercontent.com/jetsung/golang-install/main/install.sh | bash source /root/.bashrc ``` -### 安装最新的 sing-box 版本 +#### 安装最新的 sing-box 版本 ``` go install -v github.com/sagernet/sing-box/cmd/sing-box@latest ```` +#### 自定义安装,具体方法看官方文档 https://sing-box.sagernet.org +``` +例: +go install -v -tags "with_acme with_clash_api with_quic with_grpc with_wireguard with_ech with_utls with_gvisor with_shadowsocksr" github.com/sagernet/sing-box/cmd/sing-box@dev-next +``` ## License