mirror of
https://github.com/nezhahq/nezha.git
synced 2025-02-02 01:28:13 -05:00
Merge branch 'master' of https://github.com/AkkiaS7/nezha
This commit is contained in:
commit
5d4566080d
@ -26,7 +26,7 @@ type AgentConfig struct {
|
|||||||
v *viper.Viper
|
v *viper.Viper
|
||||||
}
|
}
|
||||||
|
|
||||||
// Read 从给点的文件目录加载配置文件
|
// Read 从给定的文件目录加载配置文件
|
||||||
func (c *AgentConfig) Read(path string) error {
|
func (c *AgentConfig) Read(path string) error {
|
||||||
c.v = viper.New()
|
c.v = viper.New()
|
||||||
c.v.SetConfigFile(path)
|
c.v.SetConfigFile(path)
|
||||||
|
Loading…
Reference in New Issue
Block a user