appease linter

This commit is contained in:
Rafael da Fonseca 2024-01-26 14:29:06 +00:00
parent fdf53cba81
commit c0ffcd27e8

View file

@ -1415,12 +1415,12 @@ func buildH2CListener(t, s interface{}) string {
} }
addrV4 := []string{""} addrV4 := []string{""}
co := commonListenOptions(&tc, hostname)
if len(tc.Cfg.BindAddressIpv4) > 0 { if len(tc.Cfg.BindAddressIpv4) > 0 {
addrV4 = tc.Cfg.BindAddressIpv4 addrV4 = tc.Cfg.BindAddressIpv4
} }
co := commonListenOptions(&tc, hostname)
out = append(out, h2cListener(addrV4, co, &tc)...) out = append(out, h2cListener(addrV4, co, &tc)...)
if !tc.IsIPV6Enabled { if !tc.IsIPV6Enabled {