From 0da16a351753eb1bd9b807a01d1b419711226b70 Mon Sep 17 00:00:00 2001 From: atanarjuat Date: Mon, 23 May 2022 01:48:14 +0200 Subject: wip: use kcp in the server --- client/main.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'client') 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) -- cgit v1.2.3