fix: mihomo proxy-group name conflict + error message

This commit is contained in:
2026-07-28 19:30:38 +08:00
parent 8d396e63d6
commit feafb19714
+3 -3
View File
@@ -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")
}