From c0ffcd27e854ae7f060e396ccc21ddc56bc42d47 Mon Sep 17 00:00:00 2001 From: Rafael da Fonseca Date: Fri, 26 Jan 2024 14:29:06 +0000 Subject: [PATCH] appease linter --- internal/ingress/controller/template/template.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/ingress/controller/template/template.go b/internal/ingress/controller/template/template.go index 70f020e34..5a606c9d5 100644 --- a/internal/ingress/controller/template/template.go +++ b/internal/ingress/controller/template/template.go @@ -1415,12 +1415,12 @@ func buildH2CListener(t, s interface{}) string { } addrV4 := []string{""} + co := commonListenOptions(&tc, hostname) + if len(tc.Cfg.BindAddressIpv4) > 0 { addrV4 = tc.Cfg.BindAddressIpv4 } - co := commonListenOptions(&tc, hostname) - out = append(out, h2cListener(addrV4, co, &tc)...) if !tc.IsIPV6Enabled {