1. DNS possible fix

This commit is contained in:
vadym 2020-06-29 00:00:25 -07:00
parent 767079cfdc
commit 5217204670

View File

@ -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)
} }