From feafb1971419096a1a91cd5f88b8ea18a10e46a9 Mon Sep 17 00:00:00 2001 From: Rogee Date: Tue, 28 Jul 2026 19:30:38 +0800 Subject: [PATCH] fix: mihomo proxy-group name conflict + error message --- internal/handler/egress_info.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/handler/egress_info.go b/internal/handler/egress_info.go index e3c5b29..3c7d589 100644 --- a/internal/handler/egress_info.go +++ b/internal/handler/egress_info.go @@ -148,12 +148,12 @@ log-level: warning proxies: - %s proxy-groups: -- name: PROXY +- name: PROXY-GROUP type: select proxies: - PROXY rules: -- MATCH,PROXY +- MATCH,PROXY-GROUP `, port, strings.ReplaceAll(strings.TrimSuffix(string(proxyYaml), "\n"), "\n", "\n ")) return []byte(config), nil @@ -251,5 +251,5 @@ func waitTCP(host string, port int, timeout time.Duration) error { } time.Sleep(100 * time.Millisecond) } - return fmt.Errorf("Timed out waiting for sing-box") + return fmt.Errorf("Timed out waiting for mihomo") }