forked from mirror/serenity
Fix parse clash obfs-local
This commit is contained in:
parent
c6baae3b27
commit
f245b196c9
@ -206,11 +206,11 @@ func (o shadowsocksPluginOptionsBuilder) Build() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func clashPluginOptions(plugin string, opts map[string]any) string {
|
func clashPluginOptions(plugin string, opts map[string]any) string {
|
||||||
options := shadowsocksPluginOptionsBuilder(opts)
|
options := make(shadowsocksPluginOptionsBuilder)
|
||||||
switch plugin {
|
switch plugin {
|
||||||
case "obfs":
|
case "obfs":
|
||||||
options["mode"] = opts["mode"]
|
options["obfs"] = opts["mode"]
|
||||||
options["host"] = opts["host"]
|
options["obfs-host"] = opts["host"]
|
||||||
case "v2ray-plugin":
|
case "v2ray-plugin":
|
||||||
options["mode"] = opts["mode"]
|
options["mode"] = opts["mode"]
|
||||||
options["tls"] = opts["tls"]
|
options["tls"] = opts["tls"]
|
||||||
|
Loading…
Reference in New Issue
Block a user