From cefe868310003006e9060230343d4e41ca84147d Mon Sep 17 00:00:00 2001 From: zirain Date: Wed, 20 Nov 2024 10:26:47 +0800 Subject: [PATCH] nit Signed-off-by: zirain --- internal/xds/translator/cluster.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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