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