tune ttl and mtu

This commit is contained in:
Jason
2019-12-19 22:15:49 +08:00
parent f9b9c821b7
commit 4d70042a38
2 changed files with 4 additions and 0 deletions

View File

@@ -118,4 +118,7 @@ func init() {
// Now the loop interface is just the first element in
// `C.netif_list`, i.e. `*C.netif_list`.
lwipInit()
// Set MTU.
C.netif_list.mtu = 1500
}