f2222ba3 by astaxie

support fastcgi

1 parent 3cb8a960
Showing 1 changed file with 5 additions and 1 deletions
......@@ -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)
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!