mirror of
https://github.com/ehang-io/nps.git
synced 2025-08-31 17:56:56 +00:00
version
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user