From 7b30815938e832a8574680959c50e33af217529e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Thu, 11 Aug 2022 11:44:54 +0800 Subject: [PATCH] Enable QUIC in server scripts --- release/local/debug.sh | 2 +- release/local/reinstall.sh | 15 +++++++++++++++ release/local/update.sh | 6 +----- 3 files changed, 17 insertions(+), 6 deletions(-) create mode 100755 release/local/reinstall.sh diff --git a/release/local/debug.sh b/release/local/debug.sh index 1fec210c..3d654a9a 100755 --- a/release/local/debug.sh +++ b/release/local/debug.sh @@ -9,7 +9,7 @@ pushd $PROJECT git fetch git reset FETCH_HEAD --hard git clean -fdx -go install -v -trimpath -ldflags "-s -w -buildid=" -tags "no_gvisor,debug" ./cmd/sing-box +go install -v -trimpath -ldflags "-s -w -buildid=" -tags no_gvisor,with_quic,debug ./cmd/sing-box popd sudo systemctl stop sing-box diff --git a/release/local/reinstall.sh b/release/local/reinstall.sh new file mode 100755 index 00000000..9ff76e01 --- /dev/null +++ b/release/local/reinstall.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +set -e -o pipefail + +DIR=$(dirname "$0") +PROJECT=$DIR/../.. + +pushd $PROJECT +go install -v -trimpath -ldflags "-s -w -buildid=" -tags no_gvisor,with_quic ./cmd/sing-box +popd + +sudo systemctl stop sing-box +sudo cp $(go env GOPATH)/bin/sing-box /usr/local/bin/ +sudo systemctl start sing-box +sudo journalctl -u sing-box --output cat -f diff --git a/release/local/update.sh b/release/local/update.sh index 1dcdb3ed..86ea315d 100755 --- a/release/local/update.sh +++ b/release/local/update.sh @@ -9,10 +9,6 @@ pushd $PROJECT git fetch git reset FETCH_HEAD --hard git clean -fdx -go install -v -trimpath -ldflags "-s -w -buildid=" -tags "no_gvisor" ./cmd/sing-box popd -sudo systemctl stop sing-box -sudo cp $(go env GOPATH)/bin/sing-box /usr/local/bin/ -sudo systemctl start sing-box -sudo journalctl -u sing-box --output cat -f +$DIR/reinstall.sh \ No newline at end of file