Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8101fc935e | ||
|
|
491ebe500f | ||
|
|
98ce68774a | ||
|
|
b0e20552dd | ||
|
|
0d478cfbc4 | ||
|
|
d1d135ccdd | ||
|
|
a28303ee76 | ||
|
|
2b09ebcd2c | ||
|
|
59ede2586a | ||
|
|
abd1d0220c |
@@ -29,7 +29,8 @@ libraryDependencies ++= Seq(
|
|||||||
|
|
||||||
libraryDependencies ++= Seq(
|
libraryDependencies ++= Seq(
|
||||||
"net.simonvt.menudrawer" % "menudrawer" % "3.0.6",
|
"net.simonvt.menudrawer" % "menudrawer" % "3.0.6",
|
||||||
"com.google.android.gms" % "play-services" % "6.1.71",
|
"com.google.android.gms" % "play-services-base" % "6.5.87",
|
||||||
|
"com.google.android.gms" % "play-services-ads" % "6.5.87",
|
||||||
"com.android.support" % "support-v4" % "21.0.3"
|
"com.android.support" % "support-v4" % "21.0.3"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="com.github.shadowsocks"
|
package="com.github.shadowsocks"
|
||||||
android:versionCode="96"
|
android:versionCode="99"
|
||||||
android:versionName="2.5.6">
|
android:versionName="2.6.1">
|
||||||
|
|
||||||
<uses-permission android:name="android.permission.INTERNET"/>
|
<uses-permission android:name="android.permission.INTERNET"/>
|
||||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
|
||||||
|
|||||||
+1
-1
Submodule src/main/jni/shadowsocks updated: 888c2438c3...a772aba1f4
File diff suppressed because one or more lines are too long
@@ -263,8 +263,9 @@ class ShadowsocksNatService extends Service with BaseService {
|
|||||||
|
|
||||||
val conf = if (config.route == Route.BYPASS_CHN) {
|
val conf = if (config.route == Route.BYPASS_CHN) {
|
||||||
val reject = ConfigUtils.getRejectList(getContext, application)
|
val reject = ConfigUtils.getRejectList(getContext, application)
|
||||||
|
val blackList = ConfigUtils.getBlackList(getContext, application)
|
||||||
ConfigUtils.PDNSD_DIRECT.formatLocal(Locale.ENGLISH, "127.0.0.1", 8153,
|
ConfigUtils.PDNSD_DIRECT.formatLocal(Locale.ENGLISH, "127.0.0.1", 8153,
|
||||||
Path.BASE + "pdnsd-nat.pid", reject, reject, 8163)
|
Path.BASE + "pdnsd-nat.pid", reject, blackList, 8163)
|
||||||
} else {
|
} else {
|
||||||
ConfigUtils.PDNSD_LOCAL.formatLocal(Locale.ENGLISH, "127.0.0.1", 8153,
|
ConfigUtils.PDNSD_LOCAL.formatLocal(Locale.ENGLISH, "127.0.0.1", 8153,
|
||||||
Path.BASE + "pdnsd-nat.pid", 8163)
|
Path.BASE + "pdnsd-nat.pid", 8163)
|
||||||
|
|||||||
@@ -155,8 +155,9 @@ class ShadowsocksVpnService extends VpnService with BaseService {
|
|||||||
val conf = {
|
val conf = {
|
||||||
if (Utils.isLollipopOrAbove && config.route == Route.BYPASS_CHN) {
|
if (Utils.isLollipopOrAbove && config.route == Route.BYPASS_CHN) {
|
||||||
val reject = ConfigUtils.getRejectList(getContext, application)
|
val reject = ConfigUtils.getRejectList(getContext, application)
|
||||||
|
val blackList = ConfigUtils.getBlackList(getContext, application)
|
||||||
ConfigUtils.PDNSD_DIRECT.formatLocal(Locale.ENGLISH, "0.0.0.0", 8153,
|
ConfigUtils.PDNSD_DIRECT.formatLocal(Locale.ENGLISH, "0.0.0.0", 8153,
|
||||||
Path.BASE + "pdnsd-vpn.pid", reject, reject, 8163)
|
Path.BASE + "pdnsd-vpn.pid", reject, blackList, 8163)
|
||||||
} else {
|
} else {
|
||||||
ConfigUtils.PDNSD_LOCAL.formatLocal(Locale.ENGLISH, "0.0.0.0", 8153,
|
ConfigUtils.PDNSD_LOCAL.formatLocal(Locale.ENGLISH, "0.0.0.0", 8153,
|
||||||
Path.BASE + "pdnsd-vpn.pid", 8163)
|
Path.BASE + "pdnsd-vpn.pid", 8163)
|
||||||
|
|||||||
@@ -161,18 +161,8 @@ object ConfigUtils {
|
|||||||
| reject = %s;
|
| reject = %s;
|
||||||
| reject_policy = fail;
|
| reject_policy = fail;
|
||||||
| reject_recursively = on;
|
| reject_recursively = on;
|
||||||
| uptest = none;
|
| exclude = %s;
|
||||||
| preset = on;
|
| policy = included;
|
||||||
|}
|
|
||||||
|
|
|
||||||
|server {
|
|
||||||
| label= "secure";
|
|
||||||
| port = 443;
|
|
||||||
| ip = 208.67.220.220,113.20.8.17,77.66.84.233,176.56.237.171;
|
|
||||||
| timeout = 3;
|
|
||||||
| reject = %s;
|
|
||||||
| reject_policy = fail;
|
|
||||||
| reject_recursively = on;
|
|
||||||
| uptest = none;
|
| uptest = none;
|
||||||
| preset = on;
|
| preset = on;
|
||||||
|}
|
|}
|
||||||
@@ -218,6 +208,17 @@ object ConfigUtils {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def getBlackList(context: Context, app: ShadowsocksApplication): String = {
|
||||||
|
val default = context.getString(R.string.black_list)
|
||||||
|
try {
|
||||||
|
val container = app.containerHolder.getContainer
|
||||||
|
val update = container.getString("black_list")
|
||||||
|
if (update == null || update.isEmpty) default else update
|
||||||
|
} catch {
|
||||||
|
case ex: Exception => default
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
def getPublicConfig(context: Context, container: Container, config: Config): Config = {
|
def getPublicConfig(context: Context, container: Container, config: Config): Config = {
|
||||||
val url = container.getString("proxy_url")
|
val url = container.getString("proxy_url")
|
||||||
val sig = Utils.getSignature(context)
|
val sig = Utils.getSignature(context)
|
||||||
|
|||||||
Reference in New Issue
Block a user