Update: Initialize the config file outside of the init function

This commit is contained in:
Dreamacro
2018-07-31 17:54:16 +08:00
parent 7347c28f75
commit 295d649624
3 changed files with 73 additions and 57 deletions

View File

@ -18,6 +18,7 @@ func main() {
proxy.Instance().Run()
hub.Run()
config.Init()
err := config.Instance().Parse()
if err != nil {
log.Fatalf("Parse config error: %s", err.Error())