fix bug of runServer function in server.go

This commit is contained in:
linyouchong 2016-12-07 17:53:41 +08:00
parent e1720af730
commit d74ef65138

View File

@ -149,7 +149,7 @@ func runServer(server *http.Server, network string, stopCh <-chan struct{}) (int
for {
time.Sleep(15 * time.Second)
ln, err = net.Listen("tcp", server.Addr)
ln, err = net.Listen(network, server.Addr)
if err == nil {
return
}