diff --git a/conntrack_test.go b/conntrack_test.go index 48e5c4a1..ea7a2926 100644 --- a/conntrack_test.go +++ b/conntrack_test.go @@ -31,7 +31,7 @@ func CheckError(t *testing.T, err error) { } func udpFlowCreateProg(t *testing.T, flows, srcPort int, dstIP string, dstPort int) { - for i := range flows { + for i := 0; i < flows; i++ { ServerAddr, err := net.ResolveUDPAddr("udp", fmt.Sprintf("%s:%d", dstIP, dstPort)) CheckError(t, err) diff --git a/go.mod b/go.mod index 5da3c460..b7e3406e 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/vishvananda/netlink -go 1.23 +go 1.20 require ( github.com/stretchr/testify v1.10.0