Commit f2222ba3 authored by astaxie's avatar astaxie

support fastcgi

parent 3cb8a960
......@@ -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)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment