This commit is contained in:
刘河
2019-04-01 23:58:23 +08:00
parent dd65e32fb5
commit a831ccd8fa
3 changed files with 5 additions and 4 deletions

View File

@@ -6,10 +6,8 @@ import (
"github.com/cnlh/nps/lib/common"
"github.com/cnlh/nps/lib/daemon"
"github.com/cnlh/nps/lib/version"
"github.com/cnlh/nps/vender/github.com/astaxie/beego"
"github.com/cnlh/nps/vender/github.com/astaxie/beego/logs"
"os"
"path/filepath"
"strings"
"time"
)
@@ -61,7 +59,7 @@ func main() {
}
} else {
if *configPath == "" {
*configPath = filepath.Join(beego.AppPath, "conf", "npc.conf")
*configPath = "npc.conf"
}
client.StartFromFile(*configPath)
}