Remove setting dns as it seems to be unnecessary (#35)

This commit is contained in:
Nate Brown 2021-05-03 14:44:13 -05:00 committed by GitHub
parent 3194028a78
commit a283bf8010
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 5 deletions

View File

@ -97,11 +97,6 @@ class NebulaVpnService : VpnService() {
builder.addRoute(ipNet.network, ipNet.maskSize.toInt()) 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 { try {
vpnInterface = builder.establish() vpnInterface = builder.establish()
nebula = mobileNebula.MobileNebula.newNebula(site!!.config, site!!.getKey(this), site!!.logFile, vpnInterface!!.fd.toLong()) nebula = mobileNebula.MobileNebula.newNebula(site!!.config, site!!.getKey(this), site!!.logFile, vpnInterface!!.fd.toLong())