mirror of
https://github.com/fumiama/WireGold.git
synced 2026-06-12 04:43:22 +08:00
add mtu option
This commit is contained in:
3
main.go
3
main.go
@@ -20,6 +20,7 @@ func main() {
|
|||||||
gen := flag.Bool("g", false, "generate key pair")
|
gen := flag.Bool("g", false, "generate key pair")
|
||||||
showp := flag.Bool("p", false, "show my publickey")
|
showp := flag.Bool("p", false, "show my publickey")
|
||||||
file := flag.String("c", "config.yaml", "specify conf file")
|
file := flag.String("c", "config.yaml", "specify conf file")
|
||||||
|
mtu := flag.Int("m", 32768-68, "mtu")
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
if *help {
|
if *help {
|
||||||
displayHelp("")
|
displayHelp("")
|
||||||
@@ -111,7 +112,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
defer w.Stop()
|
defer w.Stop()
|
||||||
w.Run(upper.ServiceWireGold, upper.ServiceWireGold, 32768-68)
|
w.Run(upper.ServiceWireGold, upper.ServiceWireGold, uint16(*mtu))
|
||||||
}
|
}
|
||||||
|
|
||||||
func displayHelp(hint string) {
|
func displayHelp(hint string) {
|
||||||
|
|||||||
Reference in New Issue
Block a user