From 0afdefb26bfcb060618d9576d63c3e56dc35df02 Mon Sep 17 00:00:00 2001 From: xtaci Date: Mon, 27 Jun 2016 10:31:45 +0800 Subject: [PATCH] print nocomp --- client/main.go | 1 + server/main.go | 1 + 2 files changed, 2 insertions(+) diff --git a/client/main.go b/client/main.go index 479b32d89..a11f9a06f 100644 --- a/client/main.go +++ b/client/main.go @@ -207,6 +207,7 @@ func main() { log.Println("nodelay parameters:", nodelay, interval, resend, nc) log.Println("remote address:", c.String("remoteaddr")) log.Println("sndwnd:", c.Int("sndwnd"), "rcvwnd:", c.Int("rcvwnd")) + log.Println("compression:", !c.Bool("nocomp")) log.Println("mtu:", c.Int("mtu")) log.Println("datashard:", c.Int("datashard"), "parityshard:", c.Int("parityshard")) log.Println("acknodelay:", c.Bool("acknodelay")) diff --git a/server/main.go b/server/main.go index 34f7c0f0a..e679de30d 100644 --- a/server/main.go +++ b/server/main.go @@ -238,6 +238,7 @@ func main() { log.Println("encryption:", c.String("crypt")) log.Println("nodelay parameters:", nodelay, interval, resend, nc) log.Println("sndwnd:", c.Int("sndwnd"), "rcvwnd:", c.Int("rcvwnd")) + log.Println("compression:", !c.Bool("nocomp")) log.Println("mtu:", c.Int("mtu")) log.Println("datashard:", c.Int("datashard"), "parityshard:", c.Int("parityshard")) log.Println("acknodelay:", c.Bool("acknodelay"))