Skip to content

Commit

Permalink
fix update v1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Neilblaze committed Mar 11, 2023
1 parent 684be4c commit 2fbe9aa
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions connectivity/tests/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ func (s *podToHost) Run(ctx context.Context, t *check.Test) {
var ipFamStr string

t.ForEachIPFamily(func(ipFam check.IPFamily) {
ipFamStr = ipFam == check.IPFamilyV4 ? "v4" : "v6"
if ipFam == check.IPFamilyV4 {
ipFamStr = "v4"
} else if ipFam == check.IPFamilyV6 {
ipFamStr = "v6"
}

for _, addr := range node.Status.Addresses {
if check.GetIPFamily(addr.Address) != ipFam {
Expand Down Expand Up @@ -95,7 +99,11 @@ func (s *podToHostPort) Run(ctx context.Context, t *check.Test) {
var ipFamStr string

t.ForEachIPFamily(func(ipFam check.IPFamily) {
ipFamStr = ipFam == check.IPFamilyV4 ? "v4" : "v6"
if ipFam == check.IPFamilyV4 {
ipFamStr = "v4"
} else if ipFam == check.IPFamilyV6 {
ipFamStr = "v6"
}

baseURL := fmt.Sprintf("%s://%s:%d%s", echo.Scheme(), echo.Pod.Status.HostIP, check.EchoServerHostPort, echo.Path())
ep := check.HTTPEndpoint(echo.Name(), baseURL)
Expand Down

0 comments on commit 2fbe9aa

Please sign in to comment.