From f856c3f85fde7b1c994cb8a5b7314d1be426e97f Mon Sep 17 00:00:00 2001 From: Kr328 Date: Sat, 2 Jul 2022 11:02:07 +0800 Subject: [PATCH] Improve: increase tun mtu --- .../src/main/java/com/github/kr328/clash/service/TunService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/src/main/java/com/github/kr328/clash/service/TunService.kt b/service/src/main/java/com/github/kr328/clash/service/TunService.kt index 0491f3b2..ec551500 100644 --- a/service/src/main/java/com/github/kr328/clash/service/TunService.kt +++ b/service/src/main/java/com/github/kr328/clash/service/TunService.kt @@ -217,7 +217,7 @@ class TunService : VpnService(), CoroutineScope by CoroutineScope(Dispatchers.De } companion object { - private const val TUN_MTU = 9000 + private const val TUN_MTU = 65535 private const val TUN_SUBNET_PREFIX = 30 private const val TUN_GATEWAY = "172.19.0.1" private const val TUN_PORTAL = "172.19.0.2"