Commit 3f70a470 authored by Max Lv's avatar Max Lv

Pass a value with the VPN option, if plugin version < 2.0

parent 52d0d7ed
......@@ -102,8 +102,8 @@ class ProxyInstance(val profile: Profile, private val route: String = profile.ro
this.configFile = configFile
val config = profile.toJson()
plugin?.let { (path, opts) ->
if (service.isVpnService) opts["V"] = ""
plugin?.let { (path, opts, isV2) ->
if (service.isVpnService) opts["V"] = if (isV2) "" else "true"
config.put("plugin", path).put("plugin_opts", opts.toString())
}
config.put("local_address", DataStore.listenAddress)
......
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