diff --git a/android/app/src/main/kotlin/net/defined/mobile_nebula/NebulaVpnService.kt b/android/app/src/main/kotlin/net/defined/mobile_nebula/NebulaVpnService.kt index 2261c96..2c8a5ff 100644 --- a/android/app/src/main/kotlin/net/defined/mobile_nebula/NebulaVpnService.kt +++ b/android/app/src/main/kotlin/net/defined/mobile_nebula/NebulaVpnService.kt @@ -97,11 +97,6 @@ class NebulaVpnService : VpnService() { builder.addRoute(ipNet.network, ipNet.maskSize.toInt()) } - val cm = getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager - cm.allNetworks.forEach { network -> - cm.getLinkProperties(network).dnsServers.forEach { builder.addDnsServer(it) } - } - try { vpnInterface = builder.establish() nebula = mobileNebula.MobileNebula.newNebula(site!!.config, site!!.getKey(this), site!!.logFile, vpnInterface!!.fd.toLong())