Commit 93273cbc authored by Max Lv's avatar Max Lv

fix an issue on lollipop

parent c0514ee1
...@@ -76,7 +76,7 @@ class ShadowsocksVpnService extends VpnService with BaseService { ...@@ -76,7 +76,7 @@ class ShadowsocksVpnService extends VpnService with BaseService {
def isByass(net: SubnetUtils): Boolean = { def isByass(net: SubnetUtils): Boolean = {
val info = net.getInfo val info = net.getInfo
info.isInRange(config.proxy) || info.isInRange("114.114.114.114") || info.isInRange("114.114.115.115") info.isInRange(config.proxy)
} }
def startShadowsocksDaemon() { def startShadowsocksDaemon() {
...@@ -144,7 +144,7 @@ class ShadowsocksVpnService extends VpnService with BaseService { ...@@ -144,7 +144,7 @@ class ShadowsocksVpnService extends VpnService with BaseService {
} }
}) })
} else { } else {
for (i <- 1 to 254) { for (i <- 1 to 223) {
if (i != 26 && i != 127) { if (i != 26 && i != 127) {
val addr = i.toString + ".0.0.0" val addr = i.toString + ".0.0.0"
val cidr = addr + "/8" val cidr = addr + "/8"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment