diff --git a/src/yggdrasil/udp.go b/src/yggdrasil/udp.go index 8d88df1d..ea396889 100644 --- a/src/yggdrasil/udp.go +++ b/src/yggdrasil/udp.go @@ -322,7 +322,7 @@ func (iface *udpInterface) reader() { //////////////////////////////////////////////////////////////////////////////// -const udp_chunkSize = 65535 +const udp_chunkSize = 1024 func udp_decode(bs []byte) (chunks, chunk, count uint8, payload []byte) { if len(bs) >= 3 { diff --git a/yggdrasil.go b/yggdrasil.go index 90ddb907..e583b184 100644 --- a/yggdrasil.go +++ b/yggdrasil.go @@ -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()