1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-04 23:40:26 +08:00

finish mtu

This commit is contained in:
fumiama
2022-01-01 20:32:26 +08:00
parent 400a5a86e5
commit 78437abe0e
2 changed files with 2 additions and 1 deletions

View File

@@ -21,6 +21,7 @@ wg [-c config.yaml] [-d|w] [-g] [-h] [-m mtu] [-p]
-p show my publickey
-w only show logs above warn level
```
- *especially*: in macos mojave, max value of mtu is `9159`
## Config file example
```yaml

View File

@@ -4,7 +4,7 @@
package lower
func (n *NIC) Up() {
execute("ifconfig", n.ifce.Name(), "mtu", n.mtu)
execute("ifconfig", n.ifce.Name(), "mtu", n.mtu) // max: 9159
execute("ifconfig", n.ifce.Name(), "inet", n.ip, n.ip, "up")
execute("route", "add", n.subnet, "-interface", n.ifce.Name())
for _, c := range n.cidrs {