mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-26 02:21:28 +00:00
Enable QUIC in server scripts
This commit is contained in:
parent
517a89fa9c
commit
7b30815938
|
@ -9,7 +9,7 @@ pushd $PROJECT
|
||||||
git fetch
|
git fetch
|
||||||
git reset FETCH_HEAD --hard
|
git reset FETCH_HEAD --hard
|
||||||
git clean -fdx
|
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
|
popd
|
||||||
|
|
||||||
sudo systemctl stop sing-box
|
sudo systemctl stop sing-box
|
||||||
|
|
15
release/local/reinstall.sh
Executable file
15
release/local/reinstall.sh
Executable 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
|
|
@ -9,10 +9,6 @@ pushd $PROJECT
|
||||||
git fetch
|
git fetch
|
||||||
git reset FETCH_HEAD --hard
|
git reset FETCH_HEAD --hard
|
||||||
git clean -fdx
|
git clean -fdx
|
||||||
go install -v -trimpath -ldflags "-s -w -buildid=" -tags "no_gvisor" ./cmd/sing-box
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
sudo systemctl stop sing-box
|
$DIR/reinstall.sh
|
||||||
sudo cp $(go env GOPATH)/bin/sing-box /usr/local/bin/
|
|
||||||
sudo systemctl start sing-box
|
|
||||||
sudo journalctl -u sing-box --output cat -f
|
|
Loading…
Reference in a new issue