1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-05 16:00:28 +08:00

add mtu option

This commit is contained in:
fumiama
2021-12-31 14:57:55 +08:00
parent 2452ec71f2
commit 025e5e2b39

View File

@@ -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) {