mirror of
https://github.com/yggdrasil-network/crispa-android.git
synced 2024-11-09 12:01:01 +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
|
||||
|
||||
/** 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 {
|
||||
private const val TAG = "Yggdrasil-service"
|
||||
@ -86,6 +86,7 @@ class YggdrasilTunService : VpnService() {
|
||||
|
||||
private fun setupIOStreams(dns: MutableSet<DNSInfo>){
|
||||
address = ygg.addressString
|
||||
|
||||
var builder = Builder()
|
||||
.addAddress(address, 7)
|
||||
.allowFamily(OsConstants.AF_INET)
|
||||
|
Loading…
Reference in New Issue
Block a user