Commit 94f04ae3 authored by Mygod's avatar Mygod

Refine passing plugin args

parent 787bfd88
......@@ -100,13 +100,7 @@ class ProxyInstance(val profile: Profile, private val route: String = profile.ro
this.configFile = configFile
val config = profile.toJson()
if (pluginPath != null) {
val pluginCmd = arrayListOf(pluginPath!!)
if (DataStore.tcpFastOpen) pluginCmd.add("--fast-open")
config
.put("plugin", Commandline.toString(service.buildAdditionalArguments(pluginCmd)))
.put("plugin_opts", plugin.toString())
}
if (pluginPath != null) config.put("plugin", pluginPath).put("plugin_opts", plugin.toString())
configFile.writeText(config.toString())
val cmd = service.buildAdditionalArguments(arrayListOf(
......
Subproject commit 7fc05dcd9ddb95db3b557fb9f4dc6c647f2c67c3
Subproject commit e7c244a414b865572fce5dc821fcb1dc25d41c41
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