Skip to content

Commit

Permalink
Revert to using parse cidr for sliding window test
Browse files Browse the repository at this point in the history
  • Loading branch information
NHAS committed Jun 5, 2024
1 parent e270437 commit 9dfa0e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/router/ebpf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -435,9 +435,9 @@ func TestSlidingWindow(t *testing.T) {
t.Fatal("after setting user as authorized it should be.... authorized")
}

ip := net.ParseIP(data.GetEffectiveAcl(devices["tester"].Username).Mfa[0])
if ip == nil {
t.Fatal("could not parse ip")
ip, _, err := net.ParseCIDR(data.GetEffectiveAcl(devices["tester"].Username).Mfa[0])
if err != nil {
t.Fatal("could not parse ip: ", err)
}

testAuthorizedPacket := ipv4.Header{
Expand Down

0 comments on commit 9dfa0e9

Please sign in to comment.