diff options
author | atanarjuat <atanarjuat@example.com> | 2022-05-30 13:37:16 +0200 |
---|---|---|
committer | atanarjuat <atanarjuat@example.com> | 2022-05-30 13:37:16 +0200 |
commit | 50c5fdc8a15f37d506292b02eef992e83752152b (patch) | |
tree | 2c711b8f0e96f77c9317235e14ff2058f32a7962 /server | |
parent | 6e531a35a57887d0b5764f34e16225ffdf0ee8e7 (diff) |
quic explorations
Diffstat (limited to 'server')
-rw-r--r-- | server/Makefile | 3 | ||||
-rw-r--r-- | server/main.go | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/server/Makefile b/server/Makefile index 02b24a9..ac4f901 100644 --- a/server/Makefile +++ b/server/Makefile @@ -10,5 +10,8 @@ run: run-kcp: sudo KCP=1 ./server -addr ${LHOST} -vpn ${RHOST} -state test_data -c test_data/obfs4.json +run-quic: + sudo QUIC=1 ./server -addr ${LHOST} -vpn ${RHOST} -state test_data -c test_data/obfs4.json + stop: pkill -9 obfsproxy diff --git a/server/main.go b/server/main.go index 632b8de..82615d7 100644 --- a/server/main.go +++ b/server/main.go @@ -100,6 +100,8 @@ func main() { var network string if os.Getenv("KCP") == "1" { network = "kcp" + } else if os.Getenv("QUIC") == "1" { + network = "quic" } else { network = "tcp" } |