1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-23 00:30:48 +00:00

support fastcgi

This commit is contained in:
astaxie 2013-08-19 11:23:53 +08:00
parent 3cb8a96041
commit f2222ba3c6

View File

@ -108,7 +108,11 @@ func (app *App) Run() {
l net.Listener
)
if UseFcgi {
l, err = net.Listen("tcp", addr)
if HttpPort == 0 {
l, err = net.Listen("unix", addr)
} else {
l, err = net.Listen("tcp", addr)
}
if err != nil {
BeeLogger.Fatal("Listen: ", err)
}