new mtu setting and const for default

This commit is contained in:
Ryan Huber
2019-12-12 18:01:46 +00:00
parent f03d895ebf
commit 9981510554
3 changed files with 21 additions and 1 deletions

View File

@ -111,7 +111,7 @@ func Main(configPath string, configTest bool, buildVersion string) {
tun, err := newTun(
config.GetString("tun.dev", ""),
tunCidr,
config.GetInt("tun.mtu", 1300),
config.GetInt("tun.mtu", DEFAULT_MTU),
routes,
unsafeRoutes,
config.GetInt("tun.tx_queue", 500),