mirror of
https://github.com/yggdrasil-network/crispa-android.git
synced 2024-11-13 22:11:03 +00:00
1. MTU=65535
This commit is contained in:
parent
9646428019
commit
2e25e2e08c
@ -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 = 1500
|
private val MAX_PACKET_SIZE = 65535
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
private const val TAG = "Yggdrasil-service"
|
private const val TAG = "Yggdrasil-service"
|
||||||
@ -86,6 +86,7 @@ class YggdrasilTunService : VpnService() {
|
|||||||
|
|
||||||
private fun setupIOStreams(dns: MutableSet<DNSInfo>){
|
private fun setupIOStreams(dns: MutableSet<DNSInfo>){
|
||||||
address = ygg.addressString
|
address = ygg.addressString
|
||||||
|
|
||||||
var builder = Builder()
|
var builder = Builder()
|
||||||
.addAddress(address, 7)
|
.addAddress(address, 7)
|
||||||
.allowFamily(OsConstants.AF_INET)
|
.allowFamily(OsConstants.AF_INET)
|
||||||
|
Loading…
Reference in New Issue
Block a user