Enable QUIC in server scripts

This commit is contained in:
世界 2022-08-11 11:44:54 +08:00
parent 517a89fa9c
commit 7b30815938
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4
3 changed files with 17 additions and 6 deletions

View File

@ -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

15
release/local/reinstall.sh Executable file
View File

@ -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

View File

@ -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