feat: reload when config apply
This commit is contained in:
@ -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