From 52172046704886b389c46f3498d9605926d3b24d Mon Sep 17 00:00:00 2001 From: vadym Date: Mon, 29 Jun 2020 00:00:25 -0700 Subject: [PATCH] 1. DNS possible fix --- .../java/io/github/chronosx88/yggdrasil/YggdrasilTunService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/github/chronosx88/yggdrasil/YggdrasilTunService.kt b/app/src/main/java/io/github/chronosx88/yggdrasil/YggdrasilTunService.kt index 088648d..f4e4729 100644 --- a/app/src/main/java/io/github/chronosx88/yggdrasil/YggdrasilTunService.kt +++ b/app/src/main/java/io/github/chronosx88/yggdrasil/YggdrasilTunService.kt @@ -65,9 +65,9 @@ class YggdrasilTunService : VpnService() { var builder = Builder() .addAddress(address, 7) .allowFamily(OsConstants.AF_INET) - .allowFamily(OsConstants.AF_INET6) .setMtu(MAX_PACKET_SIZE) if (dns.size > 0) { + builder.addDnsServer(address) for (d in dns) { builder.addDnsServer(d.address) }