forked from core/mobile_nebula
Remove setting dns as it seems to be unnecessary (#35)
This commit is contained in:
parent
3194028a78
commit
a283bf8010
|
@ -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())
|
||||||
|
|
Loading…
Reference in New Issue