Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
Signed-off-by: zirain <[email protected]>
  • Loading branch information
zirain committed Nov 20, 2024
1 parent 2756758 commit cefe868
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/xds/translator/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cefe868

Please sign in to comment.