bypass IPv6 instead

This commit is contained in:
Max Lv
2014-10-19 19:47:59 +08:00
parent 558a39ec14
commit 70dc8e9995
@@ -67,8 +67,6 @@ class ShadowsocksVpnService extends VpnService with BaseService {
val PRIVATE_VLAN = "26.26.26.%s"
val AF_INET6 = 10
var conn: ParcelFileDescriptor = null
var notificationManager: NotificationManager = null
var receiver: BroadcastReceiver = null
@@ -130,8 +128,6 @@ class ShadowsocksVpnService extends VpnService with BaseService {
.addDnsServer("8.8.8.8")
if (Build.VERSION.SDK_INT == Build.VERSION_CODES.LOLLIPOP) {
builder.allowFamily(AF_INET6)
if (!config.isGlobalProxy) {
val apps = AppManager.getProxiedApps(this, config.proxiedAppString)
val pkgSet: mutable.HashSet[String] = new mutable.HashSet[String]