feat: reload when config apply
This commit is contained in:
1 parent
ad49c3d2cb
commit
9adc8777c2
4 files changed
+6
-7
No files matched your search
@@ -383,7 +383,7 @@ func (m *Manager) GetServiceStatus(serviceName string) string {
|
||||
|
||||
// ReloadService reloads mihomo configuration via its external-controller API
|
||||
// without restarting the service.
|
||||
func (m *Manager) ReloadService(serviceName string) bool {
|
||||
func (m *Manager) ReloadService() bool {
|
||||
configPath := filepath.Join(m.CoreConfigManager.Storage.ConfigDir, "generated_config.yaml")
|
||||
if _, err := os.Stat(configPath); err != nil {
|
||||
fmt.Printf("❌ Configuration file not found: %s\n", configPath)
|
||||
|
||||
Reference in new issue
Block a user