Skip to content

Commit

Permalink
Pass a value with the VPN option, if plugin version < 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
madeye committed Oct 2, 2020
1 parent 52d0d7e commit 3f70a47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/com/github/shadowsocks/bg/ProxyInstance.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3f70a47

Please sign in to comment.