Commit 95ab2cd5 authored by Max Lv's avatar Max Lv

Make Codacy happy

parent 616603a2
...@@ -120,10 +120,10 @@ class ProxyInstance(val profile: Profile, private val route: String = profile.ro ...@@ -120,10 +120,10 @@ class ProxyInstance(val profile: Profile, private val route: String = profile.ro
config.put("local_port", DataStore.portProxy) config.put("local_port", DataStore.portProxy)
configFile.writeText(config.toString()) configFile.writeText(config.toString())
val cmd = (arrayListOf( val cmd = arrayListOf(
File((service as Context).applicationInfo.nativeLibraryDir, Executable.SS_LOCAL).absolutePath, File((service as Context).applicationInfo.nativeLibraryDir, Executable.SS_LOCAL).absolutePath,
"--stat-path", stat.absolutePath, "--stat-path", stat.absolutePath,
"-c", configFile.absolutePath)) "-c", configFile.absolutePath)
if (service.isVpnService()) cmd += arrayListOf("--protect-path", "protect_path") if (service.isVpnService()) cmd += arrayListOf("--protect-path", "protect_path")
if (extraFlag != null) cmd.add(extraFlag) if (extraFlag != null) cmd.add(extraFlag)
......
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