Commit 9f906008 authored by Max Lv's avatar Max Lv

Bump version

parent 8e65f495
Subproject commit 7e414bb993c8e6dcc6f0c55cad3e00471910a2f7 Subproject commit 3e7c852970ec050794becdaef04382d6e63c15b2
...@@ -21,8 +21,8 @@ android { ...@@ -21,8 +21,8 @@ android {
applicationId "com.github.shadowsocks" applicationId "com.github.shadowsocks"
minSdkVersion rootProject.minSdkVersion minSdkVersion rootProject.minSdkVersion
targetSdkVersion rootProject.sdkVersion targetSdkVersion rootProject.sdkVersion
versionCode 4050300 versionCode 4050400
versionName "4.5.3" versionName "4.5.4"
testApplicationId "com.github.shadowsocks.test" testApplicationId "com.github.shadowsocks.test"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
resConfigs "fa", "fr", "ja", "ko", "ru", "zh-rCN", "zh-rTW" resConfigs "fa", "fr", "ja", "ko", "ru", "zh-rCN", "zh-rTW"
......
...@@ -255,6 +255,7 @@ object BaseService { ...@@ -255,6 +255,7 @@ object BaseService {
fun startNativeProcesses() { fun startNativeProcesses() {
val data = data val data = data
val profile = data.profile!!
val cmd = buildAdditionalArguments(arrayListOf( val cmd = buildAdditionalArguments(arrayListOf(
File((this as Context).applicationInfo.nativeLibraryDir, Executable.SS_LOCAL).absolutePath, File((this as Context).applicationInfo.nativeLibraryDir, Executable.SS_LOCAL).absolutePath,
"-u", "-u",
...@@ -269,6 +270,8 @@ object BaseService { ...@@ -269,6 +270,8 @@ object BaseService {
cmd += acl.absolutePath cmd += acl.absolutePath
} }
if (profile.udpdns) cmd += "-D"
if (TcpFastOpen.sendEnabled) cmd += "--fast-open" if (TcpFastOpen.sendEnabled) cmd += "--fast-open"
data.sslocalProcess = GuardedProcess(cmd).start() data.sslocalProcess = GuardedProcess(cmd).start()
......
...@@ -183,9 +183,7 @@ class VpnService : BaseVpnService(), LocalDnsService.Interface { ...@@ -183,9 +183,7 @@ class VpnService : BaseVpnService(), LocalDnsService.Interface {
} }
override fun buildAdditionalArguments(cmd: ArrayList<String>): ArrayList<String> { override fun buildAdditionalArguments(cmd: ArrayList<String>): ArrayList<String> {
val profile = data.profile!!
cmd += "-V" cmd += "-V"
if (profile.udpdns) cmd += "-D"
return cmd return cmd
} }
......
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