fix a bypass issue
This commit is contained in:
@@ -91,7 +91,7 @@ class ShadowsocksVpnService extends VpnService with BaseService {
|
||||
Path.BASE + "ss-tunnel.pid")
|
||||
.format(config.proxy, config.remotePort, 8153, config.sitekey, config.encMethod)
|
||||
} else {
|
||||
val conf = ConfigUtils.PDNSD.format("0.0.0.0", getString(R.string.exclude), System.getDNS1)
|
||||
val conf = ConfigUtils.PDNSD.format("0.0.0.0", getString(R.string.exclude), Utils.getDNS)
|
||||
ConfigUtils.printToFile(new File(Path.BASE + "pdnsd.conf"))(p => {
|
||||
p.println(conf)
|
||||
})
|
||||
@@ -115,7 +115,7 @@ class ShadowsocksVpnService extends VpnService with BaseService {
|
||||
|
||||
def isByass(util: SubnetUtils): Boolean = {
|
||||
val info = util.getInfo
|
||||
info.isInRange(config.proxy) || info.isInRange("114.114.114.114") || info.isInRange("114.114.115.115")
|
||||
info.isInRange(config.proxy) || info.isInRange("114.114.114.114") || info.isInRange(Utils.getDNS)
|
||||
}
|
||||
|
||||
def startVpn() {
|
||||
|
||||
Reference in New Issue
Block a user