Skip to content

Commit

Permalink
feat: gateway backends support IPv6 addresses (#454)
Browse files Browse the repository at this point in the history
Signed-off-by: Lin Yang <[email protected]>
  • Loading branch information
reaver-flomesh authored Nov 20, 2024
1 parent 190ee95 commit b2dcc47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/gateway/utils/endpointslices.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ func FilterEndpointSliceList(endpointSliceList *discoveryv1.EndpointSliceList, p
}

func ignoreEndpointSlice(endpointSlice *discoveryv1.EndpointSlice, port corev1.ServicePort) bool {
if endpointSlice.AddressType != discoveryv1.AddressTypeIPv4 {
return true
}
//if endpointSlice.AddressType != discoveryv1.AddressTypeIPv4 {
// return true
//}

// ignore endpoint slices that don't have a matching port.
return FindEndpointSlicePort(endpointSlice.Ports, port) == 0
Expand Down

0 comments on commit b2dcc47

Please sign in to comment.