diff options
author | atanarjuat <atanarjuat@example.com> | 2022-05-30 19:14:02 +0200 |
---|---|---|
committer | atanarjuat <atanarjuat@example.com> | 2022-05-30 19:14:02 +0200 |
commit | ae8664bec8a34bc758184e5c72141e26a1c960da (patch) | |
tree | d40154885facfbba68799f1e1846c2cfb380f3b6 /cmd | |
parent | 50c5fdc8a15f37d506292b02eef992e83752152b (diff) |
quic dialerfeat/quic
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/client/main.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/cmd/client/main.go b/cmd/client/main.go index 15f33d5..4125a12 100644 --- a/cmd/client/main.go +++ b/cmd/client/main.go @@ -42,14 +42,19 @@ func main() { debug.SetOutput(os.Stderr) } - kcpTransport := false + var ( + kcpTransport = false + quicTransport = false + ) // TODO make this configurable via a Config struct // TODO make sure we're disabling all the crypto options for KCP if os.Getenv("KCP") == "1" { kcpTransport = true + } else if os.Getenv("QUIC") == "1" { + quicTransport = true } socksAddr := net.JoinHostPort(socksHost, socksPort) - c := client.NewClient(kcpTransport, socksAddr, obfs4Cert) + c := client.NewClient(kcpTransport, quicTransport, socksAddr, obfs4Cert) c.Start() } |