mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +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 {
|
||||
time.Sleep(15 * time.Second)
|
||||
|
||||
ln, err = net.Listen("tcp", server.Addr)
|
||||
ln, err = net.Listen(network, server.Addr)
|
||||
if err == nil {
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user