浏览代码

更新config位置

jiantao 5 年之前
父节点
当前提交
d19518ab38
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      adslib/config.go

+ 1 - 1
adslib/config.go

@@ -49,7 +49,7 @@ var once sync.Once
49
 
49
 
50
 func GetConf() *SvrConf {
50
 func GetConf() *SvrConf {
51
 	once.Do(func() {
51
 	once.Do(func() {
52
-		_, err := toml.DecodeFile("./conf/config.toml", &svrConf)
52
+		_, err := toml.DecodeFile("../conf/config.toml", &svrConf)
53
 		if err != nil {
53
 		if err != nil {
54
 			panic(err)
54
 			panic(err)
55
 		}
55
 		}