Commit d74ef651 authored by linyouchong's avatar linyouchong

fix bug of runServer function in server.go

parent e1720af7
......@@ -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
}
......
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