mirror of
https://github.com/yggdrasil-network/crispa-android.git
synced 2025-01-22 16:06:30 +00:00
1. DNS possible fix
This commit is contained in:
parent
767079cfdc
commit
5217204670
@ -65,9 +65,9 @@ class YggdrasilTunService : VpnService() {
|
|||||||
var builder = Builder()
|
var builder = Builder()
|
||||||
.addAddress(address, 7)
|
.addAddress(address, 7)
|
||||||
.allowFamily(OsConstants.AF_INET)
|
.allowFamily(OsConstants.AF_INET)
|
||||||
.allowFamily(OsConstants.AF_INET6)
|
|
||||||
.setMtu(MAX_PACKET_SIZE)
|
.setMtu(MAX_PACKET_SIZE)
|
||||||
if (dns.size > 0) {
|
if (dns.size > 0) {
|
||||||
|
builder.addDnsServer(address)
|
||||||
for (d in dns) {
|
for (d in dns) {
|
||||||
builder.addDnsServer(d.address)
|
builder.addDnsServer(d.address)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user