From f245b196c9295ab2f82b7e9cdee2237eaa4f9885 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Fri, 11 Oct 2024 23:51:37 +0800 Subject: [PATCH] Fix parse clash obfs-local --- subscription/parser/clash.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/subscription/parser/clash.go b/subscription/parser/clash.go index 250cd7b..f6fd967 100644 --- a/subscription/parser/clash.go +++ b/subscription/parser/clash.go @@ -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"]