From 9646428019b9b774479e70428c389344470ccafc Mon Sep 17 00:00:00 2001 From: vadym Date: Thu, 2 Jul 2020 11:17:28 -0700 Subject: [PATCH] 2. MTU=1500 --- .../java/io/github/chronosx88/yggdrasil/YggdrasilTunService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/github/chronosx88/yggdrasil/YggdrasilTunService.kt b/app/src/main/java/io/github/chronosx88/yggdrasil/YggdrasilTunService.kt index bcfdd4d..f825e69 100644 --- a/app/src/main/java/io/github/chronosx88/yggdrasil/YggdrasilTunService.kt +++ b/app/src/main/java/io/github/chronosx88/yggdrasil/YggdrasilTunService.kt @@ -37,7 +37,7 @@ class YggdrasilTunService : VpnService() { private var isClosed = false /** Maximum packet size is constrained by the MTU, which is given as a signed short - 256 */ - private val MAX_PACKET_SIZE = Short.MAX_VALUE/2 + private val MAX_PACKET_SIZE = 1500 companion object { private const val TAG = "Yggdrasil-service"