wireguard-go icon indicating copy to clipboard operation
wireguard-go copied to clipboard

Flags refactoring + custom MTU

Open cheina97 opened this issue 1 year ago • 2 comments

This PR refactored flags using pflag packages.

The reason for this PR is to enable adding new flags to customize the wireguard parameters. For example, the MTU has been added to the flags in this PR.

It also introduces the possibility to use the --help flag to information about the usage of wireguard-go:

Usage: ./wireguard-go [flags] <interface-name>
      --foreground   Remain in the foreground
      --mtu int      Set the MTU of the device (default 1420)
  -v, --version      Print the version number and exit
pflag: help requested 

cheina97 avatar Jun 24 '24 09:06 cheina97

@zx2c4 how can I request a review?

cheina97 avatar Aug 20 '24 11:08 cheina97

Can't you set mtu via wg wconfig?

pronebird avatar Nov 01 '24 10:11 pronebird