mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +00:00
fix bug of runServer function in server.go
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user