1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-11 20:20:27 +08:00

drop commandline mtu

This commit is contained in:
源文雨
2022-05-13 23:13:30 +08:00
parent 4e833c877d
commit 52215ec63a
4 changed files with 18 additions and 16 deletions

View File

@@ -21,7 +21,6 @@ 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", 1500-68, "set the mtu of wg")
debug := flag.Bool("d", false, "print debug logs")
warn := flag.Bool("w", false, "only show logs above warn level")
logfile := flag.String("l", "-", "write log to file")
@@ -129,7 +128,7 @@ func main() {
}
defer w.Stop()
w.Run(upper.ServiceWireGold, upper.ServiceWireGold, uint16(*mtu))
w.Run(upper.ServiceWireGold, upper.ServiceWireGold)
}
func displayHelp(hint string) {