HH-635: let SSClash own Mihomo lifecycle
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user