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:
3
main.go
3
main.go
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user