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 {