mirror of
				https://github.com/TeaOSLab/EdgeNode.git
				synced 2025-11-04 07:40:56 +08:00 
			
		
		
		
	自动生成新的配置文件(api_node.yaml)
This commit is contained in:
		@@ -67,6 +67,11 @@ func LoadAPIConfig() (*APIConfig, error) {
 | 
			
		||||
			return nil, errors.New("init error: " + err.Error())
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		// 自动生成新的配置文件
 | 
			
		||||
		if filename == oldConfigFileName {
 | 
			
		||||
			_ = config.WriteFile(Tea.ConfigFile(ConfigFileName))
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		return config, nil
 | 
			
		||||
	}
 | 
			
		||||
	return nil, errors.New("no config file '" + ConfigFileName + "' found")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user