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{