diff options
author | atanarjuat <atanarjuat@example.com> | 2022-05-23 01:48:14 +0200 |
---|---|---|
committer | atanarjuat <atanarjuat@example.com> | 2022-05-23 10:15:59 +0200 |
commit | 0da16a351753eb1bd9b807a01d1b419711226b70 (patch) | |
tree | 8e94e7ecf9b98d27f0dd19b2c3050525183c9a4d /client/main.go | |
parent | e72ad4b857b09a788c553283ecb8cda7d2b580fd (diff) |
wip: use kcp in the serverfeat/kcp
Diffstat (limited to 'client/main.go')
-rw-r--r-- | client/main.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/main.go b/client/main.go index daf6ce4..80ebb35 100644 --- a/client/main.go +++ b/client/main.go @@ -51,6 +51,8 @@ func main() { logger.Fatalf("cannot get dialer: %v", err) } + // TODO make this configurable via a Config struct + // TODO make sure we're disabling the crypto options for KCP if os.Getenv("KCP") == "1" { dialer.DialFunc = func(network, address string) (net.Conn, error) { return kcp.Dial(address) |