mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 05:03:09 +00:00
fix bug of runServer function in server.go
This commit is contained in:
parent
e1720af730
commit
d74ef65138
@ -149,7 +149,7 @@ func runServer(server *http.Server, network string, stopCh <-chan struct{}) (int
|
|||||||
for {
|
for {
|
||||||
time.Sleep(15 * time.Second)
|
time.Sleep(15 * time.Second)
|
||||||
|
|
||||||
ln, err = net.Listen("tcp", server.Addr)
|
ln, err = net.Listen(network, server.Addr)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user