From 80a45b3859f1a88df164e757e95be9e1b690e129 Mon Sep 17 00:00:00 2001 From: Arceliar Date: Sat, 3 Feb 2018 14:14:35 -0600 Subject: [PATCH] let the TCP version cheat with MTU --- misc/run-conf3-netns | 1 + misc/yggdrasil.go.tcp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/misc/run-conf3-netns b/misc/run-conf3-netns index da5f494..852c777 100755 --- a/misc/run-conf3-netns +++ b/misc/run-conf3-netns @@ -24,5 +24,6 @@ ip netns exec peerns3 ip route add 192.168.2.0/24 via 192.168.3.1 ip netns exec peerns3 ip addr list #ip netns exec peerns3 ./run -useconf=conf3.json +ip netns exec peerns3 ifconfig lo up ip netns exec peerns3 ./run -autoconf #ip netns delete peerns3 diff --git a/misc/yggdrasil.go.tcp b/misc/yggdrasil.go.tcp index b394656..c2c9a6b 100644 --- a/misc/yggdrasil.go.tcp +++ b/misc/yggdrasil.go.tcp @@ -249,8 +249,8 @@ func main() { n := node{} n.init(cfg, logger) logger.Println("Starting tun...") - n.core.DEBUG_startTun(cfg.IfName) // 1280, the smallest supported MTU - //n.core.DEBUG_startTunWithMTU(cfg.IfName, 65535) // Largest supported MTU + //n.core.DEBUG_startTun(cfg.IfName) // 1280, the smallest supported MTU + n.core.DEBUG_startTunWithMTU(cfg.IfName, 65535) // Largest supported MTU defer func() { logger.Println("Closing...") n.core.DEBUG_stopTun()