Use net.JoinHostPort to avoid IPV6 issues
This commit is contained in:
parent
2217dcf7f1
commit
8abe794178
4 changed files with 8 additions and 4 deletions
|
|
@ -485,7 +485,8 @@ func (f *Framework) WaitForNginxListening(port int) {
|
|||
|
||||
podIP := f.GetNginxIP()
|
||||
err = wait.Poll(500*time.Millisecond, DefaultTimeout, func() (bool, error) {
|
||||
conn, err := net.Dial("tcp", fmt.Sprintf("%v:%v", podIP, port))
|
||||
hostPort := net.JoinHostPort(podIP, fmt.Sprintf("%v", port))
|
||||
conn, err := net.Dial("tcp", hostPort)
|
||||
if err != nil {
|
||||
return false, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue