Browse Source

Enable QUIC in server scripts

世界 3 years ago
parent
commit
7b30815938
3 changed files with 17 additions and 6 deletions
  1. 1 1
      release/local/debug.sh
  2. 15 0
      release/local/reinstall.sh
  3. 1 5
      release/local/update.sh

+ 1 - 1
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

+ 15 - 0
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

+ 1 - 5
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