2. MTU=1500

This commit is contained in:
vadym 2020-07-02 11:17:28 -07:00
parent efca13b58f
commit 9646428019

View File

@ -37,7 +37,7 @@ class YggdrasilTunService : VpnService() {
private var isClosed = false private var isClosed = false
/** Maximum packet size is constrained by the MTU, which is given as a signed short - 256 */ /** 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 { companion object {
private const val TAG = "Yggdrasil-service" private const val TAG = "Yggdrasil-service"