Fix parse clash obfs-local

This commit is contained in:
世界 2024-10-11 23:51:37 +08:00
parent c6baae3b27
commit f245b196c9
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4

View File

@ -206,11 +206,11 @@ func (o shadowsocksPluginOptionsBuilder) Build() string {
}
func clashPluginOptions(plugin string, opts map[string]any) string {
options := shadowsocksPluginOptionsBuilder(opts)
options := make(shadowsocksPluginOptionsBuilder)
switch plugin {
case "obfs":
options["mode"] = opts["mode"]
options["host"] = opts["host"]
options["obfs"] = opts["mode"]
options["obfs-host"] = opts["host"]
case "v2ray-plugin":
options["mode"] = opts["mode"]
options["tls"] = opts["tls"]