HH-635: let SSClash own Mihomo lifecycle
Docker image / Test (pull_request) Successful in 2m29s
Docker image / Build and publish (pull_request) Successful in 2m43s

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
2026-08-25 10:06:23 +08:00
co-authored by multica-agent
parent 6c67390d52
commit 1c9c91f63e
6 changed files with 130 additions and 71 deletions
+4 -2
View File
@@ -6,6 +6,7 @@ import (
"log"
"os"
"os/signal"
"path/filepath"
"syscall"
"time"
@@ -56,9 +57,10 @@ func main() {
ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
defer stop()
err = bootstrap.Run(ctx, bootstrap.RuntimeConfig{
CoreBinary: defaultCoreSource,
Root: root,
CoreBinary: filepath.Join(root, "bin", "clash"),
SSClashBinary: ssclashBinary,
ConfigSource: defaultConfigSource,
ConfigSource: filepath.Join(root, "config.yaml"),
RuntimeDir: defaultRuntimeDir,
SubscriptionURL: subscriptionURL,
UpdateInterval: time.Hour,