From 65b1b0c329616e523a99d64bf3220ab9a861f693 Mon Sep 17 00:00:00 2001 From: timerzz Date: Wed, 11 Dec 2024 14:05:57 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8DFindProcessMode?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index a6101b3..6926991 100644 --- a/main.go +++ b/main.go @@ -14,6 +14,7 @@ import ( "github.com/gofiber/fiber/v3" "github.com/gofiber/fiber/v3/middleware/cors" "github.com/gofiber/fiber/v3/middleware/recover" + "github.com/metacubex/mihomo/component/process" clash_config "github.com/metacubex/mihomo/config" "gopkg.in/yaml.v3" ) @@ -57,7 +58,7 @@ func main() { r.Use(cors.New(), recover.New()) r.Get("/clash/config", func(ctx fiber.Ctx) error { mappings := structs.ProxiesList.Mapping() - rawConfig := clash_config.RawConfig{Proxy: mappings} + rawConfig := clash_config.RawConfig{Proxy: mappings, FindProcessMode: process.FindProcessAlways} return yaml.NewEncoder(ctx.Response().BodyWriter()).Encode(&rawConfig) }) _ = r.Listen(":"+config.Config.Port, fiber.ListenConfig{