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