Commit 02e11818 authored by Max Lv's avatar Max Lv

Update shadowsocks-rust

parent f9a80ac6
......@@ -40,6 +40,7 @@ import java.io.File
import java.io.IOException
import java.net.*
import java.security.MessageDigest
import org.json.JSONArray
/**
* This class sets up environment for ss-local.
......@@ -104,7 +105,7 @@ class ProxyInstance(val profile: Profile, private val route: String = profile.ro
val config = profile.toJson()
plugin?.let { (path, opts, isV2) ->
if (service.isVpnService) {
if (isV2) opts["__android_vpn"] = "" else config.put("plugin_arg", "-V")
if (isV2) opts["__android_vpn"] = "" else config.put("plugin_args", JSONArray(arrayOf("-V")))
}
config.put("plugin", path).put("plugin_opts", opts.toString())
}
......
Subproject commit 8eaa922aaac511e901bd37283d468f9c940dc995
Subproject commit 91142cb57d142402b44cfa3923b025fe68e36f9b
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