Browse Source

增加端口

master
xyiege 7 months ago
parent
commit
c322d5ab50
  1. 9
      aufs/main.go

9
aufs/main.go

@ -59,7 +59,7 @@ func main() {
os.Exit(1) os.Exit(1)
} }
config.G.LocalIP = lcip config.G.LocalIP = lcip
// // 监控目录
flag := args[1] flag := args[1]
if flag == "-t" { if flag == "-t" {
wkdir := args[2] wkdir := args[2]
@ -74,6 +74,13 @@ func main() {
// current work directory // current work directory
config.G.FilePath = curdir config.G.FilePath = curdir
} }
// 监控端口
tpflag := args[3]
if tpflag == "-p" {
config.G.Port = args[4]
} else {
config.G.Port = "9099"
}
// web service // web service
startWeb() startWeb()
} }

Loading…
Cancel
Save