Browse Source

更新config位置

jiantao 4 years ago
parent
commit
d19518ab38
1 changed files with 1 additions and 1 deletions
  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
 		}