From 025e5e2b3933ea7ee6fb4e6275f23490135fe728 Mon Sep 17 00:00:00 2001 From: fumiama Date: Fri, 31 Dec 2021 14:57:55 +0800 Subject: [PATCH] add mtu option --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 8cfdb15..5f69975 100644 --- a/main.go +++ b/main.go @@ -20,6 +20,7 @@ func main() { gen := flag.Bool("g", false, "generate key pair") showp := flag.Bool("p", false, "show my publickey") file := flag.String("c", "config.yaml", "specify conf file") + mtu := flag.Int("m", 32768-68, "mtu") flag.Parse() if *help { displayHelp("") @@ -111,7 +112,7 @@ func main() { } defer w.Stop() - w.Run(upper.ServiceWireGold, upper.ServiceWireGold, 32768-68) + w.Run(upper.ServiceWireGold, upper.ServiceWireGold, uint16(*mtu)) } func displayHelp(hint string) {