diff --git a/internal/xds/translator/cluster.go b/internal/xds/translator/cluster.go index edd06d86fa9..495640ff90a 100644 --- a/internal/xds/translator/cluster.go +++ b/internal/xds/translator/cluster.go @@ -85,7 +85,7 @@ func buildEndpointType(settings []*ir.DestinationSetting) EndpointType { func buildXdsCluster(args *xdsClusterArgs) *clusterv3.Cluster { dnsLookupFamily := clusterv3.Cluster_AUTO - if args.ipFamily != nil && *args.ipFamily == egv1a1.DualStack { + if args.ipFamily != nil { switch *args.ipFamily { case egv1a1.IPv4: dnsLookupFamily = clusterv3.Cluster_V4_ONLY