mirror of
https://github.com/fumiama/WireGold.git
synced 2026-06-04 23:40:26 +08:00
finish mtu
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user