aa
This commit is contained in:
8
main.go
8
main.go
@@ -140,6 +140,10 @@ func main() {
|
|||||||
go func() {
|
go func() {
|
||||||
if globals.IsMainProductEnv() {
|
if globals.IsMainProductEnv() {
|
||||||
http.ListenAndServe("0.0.0.0:6061", nil)
|
http.ListenAndServe("0.0.0.0:6061", nil)
|
||||||
|
} else {
|
||||||
|
http.ListenAndServe("0.0.0.0:6060", nil)
|
||||||
|
}
|
||||||
|
}()
|
||||||
l, err := net.Listen("tcp", "http://print.jxcs.net:8000")
|
l, err := net.Listen("tcp", "http://print.jxcs.net:8000")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("listen error:", err)
|
fmt.Println("listen error:", err)
|
||||||
@@ -154,10 +158,6 @@ func main() {
|
|||||||
globals.SugarLogger.Debugf("tcp socket:", utils.Format4Output(c, true))
|
globals.SugarLogger.Debugf("tcp socket:", utils.Format4Output(c, true))
|
||||||
go handleConn(c)
|
go handleConn(c)
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
http.ListenAndServe("0.0.0.0:6060", nil)
|
|
||||||
}
|
|
||||||
}()
|
|
||||||
beego.Run()
|
beego.Run()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user